Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --locked to Rust cargo actions #2790

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

tmandry
Copy link

@tmandry tmandry commented Mar 3, 2025

This causes dependencies to be resolved in exactly the same way as they were in the Cargo.lock file, leading to more deterministic builds. Committing Cargo.lock and using this flag in CI is considered best practice, as suggested by the cargo book.

https://doc.rust-lang.org/cargo/commands/cargo-build.html#manifest-options

This causes dependencies to be resolved in exactly the same way as they were in the Cargo.lock file, leading to more deterministic builds. Committing Cargo.lock and using this flag in CI is considered best practice, as suggested by the cargo book.

https://doc.rust-lang.org/cargo/commands/cargo-build.html#manifest-options
@tmandry tmandry requested review from a team as code owners March 3, 2025 19:37
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