Cargo: the lock file Cargo.lock needs to be updated (--locked)
CI ran with `--locked` while Cargo.toml dependencies diverged from Cargo.lock.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.0.0
Identifier: Cargo: the lock file Cargo.lock needs to be updated (--locked)
Platform: Rust
Interactive Diagnostic Checklist
Safe Diagnostic Command:
cargo check --locked
Technical Explanation
CI ran with `--locked` while Cargo.toml dependencies diverged from Cargo.lock. Verified resolution path: Run `cargo update` or `cargo check` locally and commit the updated Cargo.lock.
Worked Examples
- Read-only diagnostic command: cargo check --locked
Limitations & Assumptions
- Always verify which infrastructure layer (CDN, Nginx, runtime, OS, or database) emitted the error before modifying production config.
Source References & Verification
Resource ID: err-rust-cargo-lock-out-of-sync · Independently verified: 2026-11-25