Skip to content

fix(ci): restore the rubash git-source entry in Cargo.lock - #257

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/ci-cargo-lock
Oct 10, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/ci-cargo-lock

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Root cause

Every CI job has failed with cannot update the lock file ... because --locked was passed since rubash#498 landed. The lock's rubash entry 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 --locked rejects 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 --locked passes.

Future rubash master advances are picked up by a manual cargo update -p rubash lock bump, same as before this broke.

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
caomengxuan666 merged commit 07830bf into master Oct 10, 2026
3 of 9 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/ci-cargo-lock branch October 10, 2026 10:01
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant