Skip to content

Commit 7fdeda4

Browse files
committed
fix(install): Also require a lockfile for --frozen
1 parent 108b05a commit 7fdeda4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/ops/cargo_install.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ impl<'gctx> InstallablePackage<'gctx> {
189189
lockfile_path.clone(),
190190
)?;
191191

192-
if gctx.locked() {
192+
if !gctx.lock_update_allowed() {
193193
// When --lockfile-path is set, check that passed lock file exists
194194
// (unlike the usual flag behavior, lockfile won't be created as we imply --locked)
195195
if let Some(requested_lockfile_path) = ws.requested_lockfile_path() {

0 commit comments

Comments
 (0)