Repository navigation
Fix bach init asking .NET users for a runtime the release already ships - #41
Merged
Merged
Conversation
The release workflow publishes self-contained, but bach init wrote an active dotnet requirement, so people installing a released app were told to install a runtime it carries. The block is now written commented out, for framework-dependent publishes. The workflow stays as it is: switching it would leave projects that deleted the block with an app that needs a runtime nothing checks for.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bach initon a .NET project wrote an active[[requirements]] kind = "dotnet"block, while the release workflow publishes withdotnet publish -c Release -r win-x64 --self-contained. Anyone releasing with the workflow as generated asked their users to install a runtime the app already carries.Change:
bach initnow writes the block commented out, with one comment saying when to uncomment it (--self-contained false).Why this side and not the workflow:
bach workflowwith a framework-dependent publish, ship an app that needs a runtime nothing checks for.Existing
bach.tomlfiles are not changed;docs/releasing.mdsays to delete the block from one written by 0.11.3 or earlier.Tests: a new test checks that the generated workflow and config agree, and that the commented block uncomments to a valid
dotnetrequirement.cargo test --workspace,cargo clippy --workspace --all-targetsandcargo fmt --checkpass on Windows (not run on macOS). Also ranbach initandbach checkon a throwaway .NET project folder.Docs:
docs/releasing.mdandskills/bach/SKILL.md.docs/config.mddidn't mention it.🤖 Generated with Claude Code