fix(release): sync and stage Cargo.lock in create-release recipe #24
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/create-release-stage-cargo-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?
Problem
The
create-releaserecipe injustfilebumpedpackage.versioninCargo.tomland staged only the manifest (git add $manifest). It never ran acargo update, soCargo.lock'syoutrack-mcpentry kept the old version. Everycargo build --release --lockedagainst the release commit then failed on a version mismatch. This is the exact stale-lockfile CI break that #22 had to patch by hand (YTMCP-18), and it would recur on the next release. The recipe comment even claimedcargo update --workspaceran, but no such command existed in the recipe.Fix
Run
cargo update --package youtrack-mcp --precise <version>after the manifest bump to rewrite this crate'sCargo.lockentry (third-party pins untouched, verified empirically against a local-path package), and stageCargo.lockalongsideCargo.tomlin the release commit so--lockedbuilds succeed. Also corrected the misleading "three workspace members" comment: this is a single-crate package, not a workspace.Verification
just pre-commit(fmt, clippy, build, 73 tests) passes. Confirmedcargo update --package youtrack-mcp --preciseupdates the lock'syoutrack-mcpversion line for the local package without touching dependency pins.Closes #YTMCP-18 root cause (recurrence prevention).