Skip to content

Commit 45a51e5

Browse files
committed
chore(release): add just bump-version helper for ADR-009 lockstep bumps
1 parent 4068e9e commit 45a51e5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

justfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ version:
1818
pkgs = json.loads(meta)["packages"]
1919
print(next(p["version"] for p in pkgs if p["name"] == "degenbot_rs"))
2020
21+
# Bump every crate to a new SEMVER version in one atomic edit (ADR-009 lockstep).
22+
# cargo-edit updates the [workspace.package] literal, every inherited [package]
23+
# version, every internal [workspace.dependencies] requirement, and Cargo.lock —
24+
# the 1-vs-21 drift that felled the 0.6.0-alpha.6 crates.io publish is impossible
25+
# here. Pass the crates.io SEMVER form (0.6.0-alpha.7), not the PEP440 tag form
26+
# (0.6.0a7). Requires cargo-edit: cargo install cargo-edit
27+
bump-version version:
28+
cargo set-version --workspace {{ version }} --manifest-path rust/Cargo.toml
29+
2130
# ========== Rust Development ==========
2231

2332
# Run the standalone-Rust-consumer smoke (ADR-005 standalone claim). Proves a

0 commit comments

Comments
 (0)