Skip to content

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

Merged
heueristik merged 1 commit into
mainfrom
fix/contracts-publish-version-guard
Jul 7, 2026
Merged

fix(justfile): guard contracts-publish against non-semver version#545
heueristik merged 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 ran forge soldeer push anoma-pa-evm~--dry-run — a real publish with a garbage version tag.

This adds a semver check on version in the contracts-publish recipe 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.

Note: the Bindings CI job is red from a pre-existing anvil fork-startup flake, unrelated to this justfile-only change. Fixed separately by #547 (raise fork timeout).

@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
@jonaprieto
jonaprieto force-pushed the fix/contracts-publish-version-guard branch from 46e24f8 to 7f0eedf Compare July 3, 2026 02:16
`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.
@jonaprieto
jonaprieto force-pushed the fix/contracts-publish-version-guard branch from 7f0eedf to 730c3db Compare July 7, 2026 02:44
@jonaprieto jonaprieto removed the bug Something isn't working label Jul 7, 2026
@heueristik heueristik added the enhancement New feature or request label Jul 7, 2026
@heueristik
heueristik merged commit 3b1cb02 into main Jul 7, 2026
2 of 3 checks passed
@heueristik
heueristik deleted the fix/contracts-publish-version-guard branch July 7, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request justfile Changes to justfile recipes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants