Repository navigation
fix(ci): restore the rubash git-source entry in Cargo.lock - #257
Merged
Merged
Conversation
A local cargo run with the [patch] path override rewrote the lock's rubash entry into path form (no source line). CI has no ../rubash, so cargo must re-resolve the git dependency and --locked rejects the update - every run since rubash#498 landed has failed at 'cannot update the lock file'. Restore the git source, locked at rubash@41de8319 (1.4.0); the dependency list is verified against that revision's manifest. Future rubash advances are picked up by a manual 'cargo update -p rubash' lock bump, as before.
caomengxuan666
added a commit
that referenced
this pull request
Oct 10, 2026
….4.0 (#258) #257 added a git source line with a pinned rev, but cargo compares a branch dependency's lock state against the branch HEAD it resolves, so the recorded rev alone did not satisfy --locked. The historically green form (e6ea561 'rubash 1.3.3 pin' through #252) carries no source line at all: --locked stays satisfied as long as the entry's version matches the version rubash master resolves to (now 1.4.0 since #498). Restore exactly that form, version-only. Future rubash version bumps need the same one-line lock sync (see e6ea561 for the release-time precedent).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause
Every CI job has failed with
cannot update the lock file ... because --locked was passedsince rubash#498 landed. The lock'srubashentry had no source line - a local cargo run with the active[patch]path override (../rubash) rewrote the entry into path form. On CI that path does not exist, so cargo must re-resolve the git dependency and--lockedrejects the required update. Not related to rubash master advancing.Fix
Restore the git-source entry, locked at
rubash@41de8319(master, 1.4.0). The recorded dependency list is verified byte-for-byte against that revision's manifest.cargo metadata --no-deps --lockedpasses.Future rubash master advances are picked up by a manual
cargo update -p rubashlock bump, same as before this broke.