Skip to content

Fix bach init asking .NET users for a runtime the release already ships - #41

Merged
leifiyoo merged 2 commits into
mainfrom
fix/dotnet-self-contained-requirement
Nov 27, 2026
Merged

leifiyoo merged 2 commits into
mainfrom
fix/dotnet-self-contained-requirement

Conversation

@leifiyoo

Copy link
Copy Markdown
Member

bach init on a .NET project wrote an active [[requirements]] kind = "dotnet" block, while the release workflow publishes with dotnet 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 init now writes the block commented out, with one comment saying when to uncomment it (--self-contained false).

Why this side and not the workflow:

  • Self-contained means the person installing needs nothing else, and the skill already tells agents to publish that way.
  • Projects that followed the documented advice and deleted the block would, after re-running bach workflow with a framework-dependent publish, ship an app that needs a runtime nothing checks for.

Existing bach.toml files are not changed; docs/releasing.md says 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 dotnet requirement. cargo test --workspace, cargo clippy --workspace --all-targets and cargo fmt --check pass on Windows (not run on macOS). Also ran bach init and bach check on a throwaway .NET project folder.

Docs: docs/releasing.md and skills/bach/SKILL.md. docs/config.md didn't mention it.

🤖 Generated with Claude Code

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.
@leifiyoo
leifiyoo merged commit 4023c9e into main Nov 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant