summaryrefslogtreecommitdiff
path: root/cli/lockfile.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-11-10 00:28:01 +0100
committerGitHub <noreply@github.com>2022-11-10 00:28:01 +0100
commitfca539e65c3b824990fae3b992389d984aac7a95 (patch)
tree6ec7bf249e3f8e3e014bc4cfd26db22584032098 /cli/lockfile.rs
parentc36496b3bb9a25640d209d9ac7b2c201bfdc99fb (diff)
feat(lock): don't require --unstable for auto discovery (#16582)
Enables discovery of lock file unconditionally (ie. not requiring "--unstable" flag) as long as there's a config file discovered.
Diffstat (limited to 'cli/lockfile.rs')
-rw-r--r--cli/lockfile.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/lockfile.rs b/cli/lockfile.rs
index aa60b5789..b1f0c777f 100644
--- a/cli/lockfile.rs
+++ b/cli/lockfile.rs
@@ -105,7 +105,7 @@ impl Lockfile {
let filename = match flags.lock {
Some(ref lock) => PathBuf::from(lock),
- None if flags.unstable => match maybe_config_file {
+ None => match maybe_config_file {
Some(config_file) => {
if config_file.specifier.scheme() == "file" {
let mut path = config_file.specifier.to_file_path().unwrap();
@@ -117,7 +117,6 @@ impl Lockfile {
}
None => return Ok(None),
},
- None => return Ok(None),
};
let lockfile = Self::new(filename, flags.lock_write)?;