diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-11-10 00:28:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 00:28:01 +0100 |
commit | fca539e65c3b824990fae3b992389d984aac7a95 (patch) | |
tree | 6ec7bf249e3f8e3e014bc4cfd26db22584032098 | |
parent | c36496b3bb9a25640d209d9ac7b2c201bfdc99fb (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.
-rw-r--r-- | cli/lockfile.rs | 3 | ||||
-rw-r--r-- | cli/tests/integration/run_tests.rs | 2 |
2 files changed, 2 insertions, 3 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)?; diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index 70d4f5d92..09fc7b426 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -3636,7 +3636,7 @@ fn websocket_server_idletimeout() { } itest!(auto_discover_lockfile { - args: "run --unstable run/auto_discover_lockfile/main.ts", + args: "run run/auto_discover_lockfile/main.ts", output: "run/auto_discover_lockfile/main.out", http_server: true, exit_code: 10, |