Skip to content

fix(justfile): guard contracts-publish against non-semver version#545

Open
jonaprieto wants to merge 1 commit into
mainfrom
fix/contracts-publish-version-guard
Open

fix(justfile): guard contracts-publish against non-semver version#545
jonaprieto wants to merge 1 commit into
mainfrom
fix/contracts-publish-version-guard

Conversation

@jonaprieto

@jonaprieto jonaprieto commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Running just contracts-publish --dry-run used to bind --dry-run to the required version argument, so it executed forge soldeer push anoma-pa-evm~--dry-run — a real push with a garbage version. This adds a semver check on version that fails fast with a usage hint (flags like --dry-run go after the version). No behavior change for correct usage like just contracts-publish 1.2.0 --dry-run.

@jonaprieto jonaprieto self-assigned this Jul 2, 2026
@jonaprieto jonaprieto added bug Something isn't working justfile Changes to justfile recipes labels Jul 2, 2026
`just contracts-publish --dry-run` bound `--dry-run` to the required
`version` arg and ran `forge soldeer push anoma-pa-evm~--dry-run` — a
real push with a garbage version. Validate that version is semver and
fail fast with a usage hint that flags go after the version.

Add a `contracts-publish-check` smoke recipe (no network, no publish)
and run it in CI so the guard stays effective.
@jonaprieto jonaprieto force-pushed the fix/contracts-publish-version-guard branch from 46e24f8 to 7f0eedf Compare July 3, 2026 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working justfile Changes to justfile recipes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant