diff options
Diffstat (limited to 'cli/lockfile.rs')
-rw-r--r-- | cli/lockfile.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/lockfile.rs b/cli/lockfile.rs index b0cf68917..43c01b428 100644 --- a/cli/lockfile.rs +++ b/cli/lockfile.rs @@ -100,7 +100,7 @@ impl Lockfile { ) -> Result<Option<Lockfile>, AnyError> { let filename = match flags.lock { Some(ref lock) => PathBuf::from(lock), - None => match maybe_config_file { + None if flags.unstable => match maybe_config_file { Some(config_file) => { if config_file.specifier.scheme() == "file" { let mut path = config_file.specifier.to_file_path().unwrap(); @@ -112,6 +112,7 @@ impl Lockfile { } None => return Ok(None), }, + None => return Ok(None), }; let lockfile = Self::new(filename, flags.lock_write)?; |