We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 108b05a commit 7fdeda4Copy full SHA for 7fdeda4
src/cargo/ops/cargo_install.rs
@@ -189,7 +189,7 @@ impl<'gctx> InstallablePackage<'gctx> {
189
lockfile_path.clone(),
190
)?;
191
192
- if gctx.locked() {
+ if !gctx.lock_update_allowed() {
193
// When --lockfile-path is set, check that passed lock file exists
194
// (unlike the usual flag behavior, lockfile won't be created as we imply --locked)
195
if let Some(requested_lockfile_path) = ws.requested_lockfile_path() {
0 commit comments