summaryrefslogtreecommitdiff
path: root/cli/args/lockfile.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-08-28 04:23:51 +0100
committerGitHub <noreply@github.com>2024-08-28 13:23:51 +1000
commitefcabce1c117a2e0fed8604d887695a0a19a37ad (patch)
tree63606b73b8ded2bd4cb2955540f62a394a956b9c /cli/args/lockfile.rs
parent511d13abaf5cc98cc01250f7adc5edf15dc29276 (diff)
feat: remove `--lock-write` flag (#25214)
This commit remove `--lock-write` that was deprecated in v1.45 release. Closes https://github.com/denoland/deno/issues/24167. --------- Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'cli/args/lockfile.rs')
-rw-r--r--cli/args/lockfile.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/cli/args/lockfile.rs b/cli/args/lockfile.rs
index 30db49b7a..8817975cf 100644
--- a/cli/args/lockfile.rs
+++ b/cli/args/lockfile.rs
@@ -157,15 +157,7 @@ impl CliLockfile {
.unwrap_or(false)
});
- let lockfile = if flags.lock_write {
- log::warn!(
- "{} \"--lock-write\" flag is deprecated and will be removed in Deno 2.",
- crate::colors::yellow("Warning")
- );
- CliLockfile::new(Lockfile::new_empty(filename, true), frozen)
- } else {
- Self::read_from_path(filename, frozen)?
- };
+ let lockfile = Self::read_from_path(filename, frozen)?;
// initialize the lockfile with the workspace's configuration
let root_url = workspace.root_dir();