diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-07-05 03:38:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-05 04:38:12 +0200 |
commit | 0bbfd6fb3dcae70c3cd727ef1cb45296f83c9680 (patch) | |
tree | 8f04f2cab386341dd56ee5061a4cfa6014af9a35 /cli/args/lockfile.rs | |
parent | d91215d418bfbaa22eb973a9a67cc2aa6aa8ac6b (diff) |
feat: Deprecate --lock-write flag (#24436)
This commit deprecates `--lock-write` flag by removing it from
the help output and printing a warning message when it's used.
Users should use `--frozen=false` instead which was added
in https://github.com/denoland/deno/pull/24355.
Towards https://github.com/denoland/deno/issues/24167.
Diffstat (limited to 'cli/args/lockfile.rs')
-rw-r--r-- | cli/args/lockfile.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/args/lockfile.rs b/cli/args/lockfile.rs index d18c871aa..3421addae 100644 --- a/cli/args/lockfile.rs +++ b/cli/args/lockfile.rs @@ -130,6 +130,10 @@ impl CliLockfile { }; 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), flags.frozen_lockfile, |