fix(ci): sync Cargo.lock after version bump so --locked steps pass #5

Merged
whitlocktech merged 1 commits from fix/release-locked-lockfile into main 2026-07-14 16:58:11 +00:00
Showing only changes of commit 45227b1a74 - Show all commits

View File

@@ -155,6 +155,11 @@ jobs:
# Replace only the [package] version (the first `version = "..."`).
sed -i -E "0,/^version = \"[^\"]+\"/s//version = \"${VERSION}\"/" "${WORKDIR}/Cargo.toml"
grep -m1 '^version' "${WORKDIR}/Cargo.toml"
# Bumping the manifest version desyncs this crate's own entry in
# Cargo.lock, which would make the `--locked` fmt/test/build steps below
# fail ("cannot update the lock file ... --locked was passed"). Sync just
# the workspace member(s) into the lock — dependency pins are untouched.
cargo update --manifest-path "${WORKDIR}/Cargo.toml" --workspace
# ── RUST ADAPTER: gates ──────────────────────────────────────────────
- name: cargo fmt --check