summaryrefslogtreecommitdiff
path: root/tests/specs/lockfile/frozen_lockfile/frozen_package_json_changed.out
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-07-02 15:00:16 -0700
committerGitHub <noreply@github.com>2024-07-02 15:00:16 -0700
commitc13b6d1413859d03b41b97d4c671fccfd388b2cc (patch)
tree503c5d2c51c71f3daa79950b6862b725e9211822 /tests/specs/lockfile/frozen_lockfile/frozen_package_json_changed.out
parentd379c0b299411a847765e2879f8ed14bdb2d0298 (diff)
feat(cli): Add `--frozen` flag to error out if lockfile is out of date (#24355)
Closes #18296. Adds a `--frozen` (alias `--frozen-lockfile`) flag that errors out if the lockfile is out of date. This is useful for running in CI (where an out of date lockfile is usually a mistake) or to prevent accidental changes in dependencies. ![Screenshot 2024-06-26 at 7 11 13 PM](https://github.com/denoland/deno/assets/17734409/538404b8-b422-4f05-89e8-4c9b1c248576)
Diffstat (limited to 'tests/specs/lockfile/frozen_lockfile/frozen_package_json_changed.out')
-rw-r--r--tests/specs/lockfile/frozen_lockfile/frozen_package_json_changed.out25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/specs/lockfile/frozen_lockfile/frozen_package_json_changed.out b/tests/specs/lockfile/frozen_lockfile/frozen_package_json_changed.out
new file mode 100644
index 000000000..066aa2303
--- /dev/null
+++ b/tests/specs/lockfile/frozen_lockfile/frozen_package_json_changed.out
@@ -0,0 +1,25 @@
+Download http://localhost:4260/@denotest/bin
+error: The lockfile is out of date. Run `deno cache --frozen=false` or rerun with `--frozen=false` to update it.
+changes:
+ 5 | - "npm:@denotest/add@1": "npm:@denotest/add@1.0.0"
+ 5 | + "npm:@denotest/add@1": "npm:@denotest/add@1.0.0",
+ 6 | + "npm:@denotest/bin@0.7.0": "npm:@denotest/bin@0.7.0"
+11 | - }
+12 | - }
+13 | - },
+14 | - "remote": {}
+12 | + },
+13 | + "@denotest/bin@0.7.0": {
+14 | + "integrity": "[WILDCARD]",
+15 | + "dependencies": {}
+16 | + }
+17 | + }
+18 | + },
+19 | + "remote": {},
+20 | + "workspace": {
+21 | + "packageJson": {
+22 | + "dependencies": [
+23 | + "npm:@denotest/bin@0.7.0"
+24 | + ]
+25 | + }
+26 | + }