From 4f9a7f23d2f4b47a46f7e8f46536e9dca6c83181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 21 Sep 2024 12:38:20 +0100 Subject: [PATCH] Remove --lock-write references (#876) --- runtime/getting_started/command_line_interface.md | 2 +- runtime/reference/cli/cache.md | 6 +++--- runtime/reference/cli/check.md | 6 +++--- runtime/reference/cli/eval.md | 6 +++--- runtime/reference/cli/test.md | 7 ++++--- runtime/reference/continuous_integration.md | 2 +- 6 files changed, 15 insertions(+), 14 deletions(-) diff --git a/runtime/getting_started/command_line_interface.md b/runtime/getting_started/command_line_interface.md index 9ae4d530b..ea48b2616 100644 --- a/runtime/getting_started/command_line_interface.md +++ b/runtime/getting_started/command_line_interface.md @@ -159,7 +159,7 @@ Affect commands which can download resources to the cache: `deno cache`, ```sh --lock Check the specified lock file ---lock-write Write lock file. Use with --lock. +--frozen[=] Error out if lockfile is out of date ``` Find out more about these diff --git a/runtime/reference/cli/cache.md b/runtime/reference/cli/cache.md index 85732d06b..e6113c945 100644 --- a/runtime/reference/cli/cache.md +++ b/runtime/reference/cli/cache.md @@ -15,7 +15,7 @@ Cache and compile remote dependencies recursively. deno cache [--no-check[=]] [--import-map ] [-q|--quiet] [--no-remote] [--no-npm] [--node-modules-dir[=]] [--vendor[=]] [-c|--config ] [--no-config] [-r|--reload[=...]] -[--lock []] [--lock-write] [--no-lock] [--cert ] [--check[=]] +[--lock []] [--frozen] [--no-lock] [--cert ] [--check[=]] deno cache -h|--help ``` @@ -117,9 +117,9 @@ detected from it's imports. Check the specified lock file. If value is not provided, defaults to "deno.lock" in the current working directory. -- `--lock-write` +- `--frozen[=]` - Force overwriting the lock file + Error out if lockfile is out of date [possible values: true, false] - `--no-lock` diff --git a/runtime/reference/cli/check.md b/runtime/reference/cli/check.md index 3c2ab26b3..0cd097012 100644 --- a/runtime/reference/cli/check.md +++ b/runtime/reference/cli/check.md @@ -15,7 +15,7 @@ Type-check a program without execution. deno check [--import-map ] [--no-remote] [-q|--quiet] [--no-npm] [--node-modules-dir[=]] [--vendor[=]] [-c|--config ] [--no-config] [-r|--reload[=...]] -[--lock []] [--lock-write] [--no-lock] [--cert ] +[--lock []] [--frozen] [--no-lock] [--cert ] [--doc] [--doc-only] [--all] deno check -h|--help @@ -100,9 +100,9 @@ The module entrypoint can be a local file or a remote URL. Check the specified lock file. If value is not provided, defaults to "deno.lock" in the current working directory. -- `--lock-write` +- `--frozen[=]` - Force overwriting the lock file + Error out if lockfile is out of date [possible values: true, false] - `--no-lock` diff --git a/runtime/reference/cli/eval.md b/runtime/reference/cli/eval.md index 8dfb8d7f0..b40a83cbf 100644 --- a/runtime/reference/cli/eval.md +++ b/runtime/reference/cli/eval.md @@ -15,7 +15,7 @@ argument. ```bash deno eval [--no-check[=] [-q|--quiet] [--no-remote] [--no-npm] [--node-modules-dir[=]] [--vendor[=]] [-c|--config ] [--no-config] -[-r|--reload[=...]] [--lock []] [--lock-write] [--no-lock] [--cert ] +[-r|--reload[=...]] [--lock []] [--frozen] [--no-lock] [--cert ] [--inspect[=]] [--inspect-brk[=]] [--inspect-wait[=]] [--cached-only] [--location ] [--v8-flags[=...]] [--seed ] [--check[=]] [--ext ] [-p|--print] [--env[=]] @@ -112,9 +112,9 @@ evaluate. Check the specified lock file. If value is not provided, defaults to "deno.lock" in the current working directory. -- `--lock-write` +- `--frozen[=]` - Force overwriting the lock file + Error out if lockfile is out of date [possible values: true, false] - `--no-lock` diff --git a/runtime/reference/cli/test.md b/runtime/reference/cli/test.md index 49174c852..925f3bb65 100644 --- a/runtime/reference/cli/test.md +++ b/runtime/reference/cli/test.md @@ -15,7 +15,7 @@ Run tests using Deno's built-in test runner. deno test [--no-check[=]] [--import-map ] [-q|--quiet] [--no-remote] [--no-npm] [--node-modules-dir[=]] [--vendor[=]][-c|--config ] [--no-config] -[-r|--reload[=...]] [--lock []] [--lock-write] +[-r|--reload[=...]] [--lock []] [--frozen] [--no-lock] [--cert ] [--allow-read[=...]] [--deny-read[=...]] [--allow-write[=...]] [--deny-write[=...]] [--allow-net[=...]] [--deny-net[=...]] @@ -111,8 +111,9 @@ Arguments passed to script files Check the specified lock file. If value is not provided, defaults to "deno.lock" in the current working directory. -- `--lock-write`\ - Force overwriting the lock file. +- `--frozen[=]` + + Error out if lockfile is out of date [possible values: true, false] - `--no-lock`\ Disable auto discovery of the lock file. diff --git a/runtime/reference/continuous_integration.md b/runtime/reference/continuous_integration.md index 48dbd7239..7af337833 100644 --- a/runtime/reference/continuous_integration.md +++ b/runtime/reference/continuous_integration.md @@ -191,7 +191,7 @@ In order to increment this version, you can update the `import` statement and then reload the cache and update the lockfile locally: ```console -deno cache --reload --lock=deno.lock --lock-write deps.ts +deno cache --reload --lock=deno.lock --frozen=false deps.ts ``` You should see changes in the lockfile's contents after running this. When this