diff options
author | Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> | 2024-07-02 15:00:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-02 15:00:16 -0700 |
commit | c13b6d1413859d03b41b97d4c671fccfd388b2cc (patch) | |
tree | 503c5d2c51c71f3daa79950b6862b725e9211822 /tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_npm.out | |
parent | d379c0b299411a847765e2879f8ed14bdb2d0298 (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.

Diffstat (limited to 'tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_npm.out')
-rw-r--r-- | tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_npm.out | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_npm.out b/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_npm.out new file mode 100644 index 000000000..9b2efa462 --- /dev/null +++ b/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_npm.out @@ -0,0 +1,15 @@ +Download http://localhost:4260/@denotest/subtract +error: Uncaught (in promise) TypeError: 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/subtract@1": "npm:@denotest/subtract@1.0.0" +11 | - } +12 | + }, +13 | + "@denotest/subtract@1.0.0": { +14 | + "integrity": "[WILDCARD]", +15 | + "dependencies": {} +16 | + } +const { subtract } = await import(scheme + "@denotest/subtract@1"); + ^ + at [WILDCARD] |