Skip to content

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

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

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

Conversation

@jonaprieto

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-forwarder-bases~--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 added the bug Something isn't working label Jul 2, 2026
@jonaprieto jonaprieto self-assigned this Jul 2, 2026
`just contracts-publish --dry-run` bound `--dry-run` to the required
`version` arg and ran `forge soldeer push anoma-forwarder-bases~--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 ebb63dc to a3924f8 Compare July 3, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant