Skip to content

fix(cli/bundle): honor global --dry-run in bundle install#159

Merged
indaco merged 1 commit intomainfrom
fix/bundle-install-dry-run-global
Apr 23, 2026
Merged

fix(cli/bundle): honor global --dry-run in bundle install#159
indaco merged 1 commit intomainfrom
fix/bundle-install-dry-run-global

Conversation

@indaco
Copy link
Copy Markdown
Owner

@indaco indaco commented Apr 23, 2026

Description

mt bundle install --dry-run was silently invoking the real dispatcher and writing a bundles row to the DB. main.zig consumes the global --dry-run before it reaches cmdInstall, so the local arm never fired and the runner ran non-dry. Reading output.isDryRun() instead (the single source every other subcommand already uses) makes the dry-run envelope actually dry: the dispatcher stays quiet, and the DB is untouched.

Related Issue

Notes for Reviewers

  • None

main.zig strips --dry-run from argv, so cmdInstall's local arm never
fired and the runner ran non-dry: it recorded a bundles row on every
`mt bundle install --dry-run`. Read output.isDryRun() instead, matching
every other subcommand, so the dry-run envelope is actually dry.
@indaco indaco merged commit c092b59 into main Apr 23, 2026
3 checks passed
@indaco indaco deleted the fix/bundle-install-dry-run-global branch April 23, 2026 10:39
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