fix(release): regenerate and stage Cargo.lock in create-release #96
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/VA-95-create-release-stage-lock"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes VA-95.
The
create-releaserecipe bumpedworkspace.package.versioninCargo.tomlbut never updatedCargo.lock, leaving the 7vervain-agentworkspace crates pinned at the old version. The next--lockedbuild (clippy incheck.Dockerfile, run by the pre-commit hook on the release commit) failed withcannot update the lock file because --locked was passed, blocking bothjust pre-commitandjust create-release.This adds
{{ compose }}run --rm build cargo update --workspace --offlineafter theCargo.tomlbump and stagesCargo.lockalongside it, so every future release commit carries a matching lock. The lock regeneration runs in the dev container'sbuildservice because the agent dev boxes are toolchain-less (no hostcargo).cargo update --workspaceis scoped to workspace members, so external deps are untouched.Mirrors the VS-76 fix in the Vervain Server repo. The v0.2.0 release that hit this bug is unblocked separately in the Release v0.2.0 PR (its Cargo.lock was regenerated by hand).
#VA-95