Skip to content

fix: sync Cargo.lock and self-heal it in ci.yml - #46

Merged
mulhamna merged 1 commit into
mainfrom
fix/ci-self-heal-cargo-lock
Aug 13, 2026
Merged

fix: sync Cargo.lock and self-heal it in ci.yml#46
mulhamna merged 1 commit into
mainfrom
fix/ci-self-heal-cargo-lock

Conversation

@mulhamna

@mulhamna mulhamna commented Aug 13, 2026

Copy link
Copy Markdown
Member

Summary

Changes

  • Cargo.lock: synced forgeguard's entry to 0.11.2. Verified locally: cargo build --workspace and cargo check --locked --workspace both clean afterward.
  • .github/workflows/ci.yml: added cargo update -p forgeguard (same self-heal approach as fix: self-heal Cargo.lock in Release instead of depending on release-please #44) to both msrv and quality, explicitly — quality happened to survive so far only because cargo clippy (no --locked) runs before its --locked steps and silently regenerates the lock file as a side effect; making it explicit removes the reliance on that incidental ordering.

Test plan

  • cargo build --workspace clean
  • cargo check --locked --workspace clean
  • .github/workflows/ci.yml validated as well-formed YAML
  • This PR's own msrv/quality checks pass

PR #45's checks failed on msrv: main's Cargo.lock was still at
forgeguard 0.11.1 while Cargo.toml is 0.11.2 (from PR #43) - same
drift class as #35, #40, #44, just hitting ci.yml this time instead
of release.yml. ci.yml runs on every push/PR to main, so this will
keep breaking the very next push after every release-please merge
until CI stops depending on Cargo.lock already being correct.

- Cargo.lock: synced forgeguard's entry to 0.11.2 (immediate fix,
  verified locally: cargo build --workspace and cargo check --locked
  --workspace both clean afterward).
- ci.yml: added the same `cargo update -p forgeguard` self-heal
  used in release.yml (#44) to both msrv and quality, explicitly,
  rather than relying on quality's clippy step happening to
  regenerate the lock file as an accidental side effect before its
  own --locked steps run.
@mulhamna
mulhamna merged commit 9bb81ac into main Aug 13, 2026
3 checks passed
@mulhamna
mulhamna deleted the fix/ci-self-heal-cargo-lock branch August 14, 2026 02:14
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