.github: Install cargo tools with --locked - #178
Merged
makubacki merged 1 commit intoJul 21, 2026
Merged
Conversation
As noted in the cargo-install documentation at: https://doc.rust-lang.org/cargo/commands/cargo-install.html#dealing-with-the-lockfile > By default, the Cargo.lock file that is included with the package > will be ignored. This means that Cargo will recompute which versions > of dependencies to use, possibly using newer versions that have been > released since the package was published. The --locked flag can be > used to force Cargo to use the packaged Cargo.lock file if it is > available. > > This may be useful for ensuring reproducible builds, to use the > exact same set of dependencies that were available when the package > was published. It may also be useful if a newer version of a > dependency is published that no longer builds on your system, or > has other problems. The downside to using --locked is that you will > not receive any fixes or updates to any dependency. Tool installation has started failing in CI recently because of the reasons noted above. In the current case, a crate is being picked up that requires Rust 1.96.0 while Patina is on 1.95.0. This change adds the `--locked` flag to fix the current issue and prevent similar issues in the future. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
5 tasks
Javagedes
approved these changes
Jul 21, 2026
vineelko
approved these changes
Jul 21, 2026
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.
As noted in the cargo-install documentation at:
https://doc.rust-lang.org/cargo/commands/cargo-install.html#dealing-with-the-lockfile
Tool installation has started failing in CI recently because of the reasons noted above. In the current case, a crate is being picked up that requires Rust 1.96.0 while Patina is on 1.95.0.
This change adds the
--lockedflag to fix the current issue and prevent similar issues in the future.