mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
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.
This commit is contained in:
parent
c36496b3bb
commit
fca539e65c
2 changed files with 2 additions and 3 deletions
|
@ -105,7 +105,7 @@ impl Lockfile {
|
||||||
|
|
||||||
let filename = match flags.lock {
|
let filename = match flags.lock {
|
||||||
Some(ref lock) => PathBuf::from(lock),
|
Some(ref lock) => PathBuf::from(lock),
|
||||||
None if flags.unstable => match maybe_config_file {
|
None => match maybe_config_file {
|
||||||
Some(config_file) => {
|
Some(config_file) => {
|
||||||
if config_file.specifier.scheme() == "file" {
|
if config_file.specifier.scheme() == "file" {
|
||||||
let mut path = config_file.specifier.to_file_path().unwrap();
|
let mut path = config_file.specifier.to_file_path().unwrap();
|
||||||
|
@ -117,7 +117,6 @@ impl Lockfile {
|
||||||
}
|
}
|
||||||
None => return Ok(None),
|
None => return Ok(None),
|
||||||
},
|
},
|
||||||
None => return Ok(None),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let lockfile = Self::new(filename, flags.lock_write)?;
|
let lockfile = Self::new(filename, flags.lock_write)?;
|
||||||
|
|
|
@ -3636,7 +3636,7 @@ fn websocket_server_idletimeout() {
|
||||||
}
|
}
|
||||||
|
|
||||||
itest!(auto_discover_lockfile {
|
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",
|
output: "run/auto_discover_lockfile/main.out",
|
||||||
http_server: true,
|
http_server: true,
|
||||||
exit_code: 10,
|
exit_code: 10,
|
||||||
|
|
Loading…
Reference in a new issue