mirror of
https://github.com/denoland/deno.git
synced 2025-01-18 03:44:05 -05:00
fix(lock): require --unstable flag to auto discover lockfile (#16524)
This commit is contained in:
parent
77fb26e143
commit
a99539bd4d
2 changed files with 3 additions and 2 deletions
|
@ -100,7 +100,7 @@ impl Lockfile {
|
||||||
) -> Result<Option<Lockfile>, AnyError> {
|
) -> Result<Option<Lockfile>, AnyError> {
|
||||||
let filename = match flags.lock {
|
let filename = match flags.lock {
|
||||||
Some(ref lock) => PathBuf::from(lock),
|
Some(ref lock) => PathBuf::from(lock),
|
||||||
None => match maybe_config_file {
|
None if flags.unstable => 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();
|
||||||
|
@ -112,6 +112,7 @@ 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)?;
|
||||||
|
|
|
@ -3630,7 +3630,7 @@ fn websocket_server_idletimeout() {
|
||||||
}
|
}
|
||||||
|
|
||||||
itest!(auto_discover_lockfile {
|
itest!(auto_discover_lockfile {
|
||||||
args: "run run/auto_discover_lockfile/main.ts",
|
args: "run --unstable 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…
Add table
Reference in a new issue