1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00
denoland-deno/tests/specs/lockfile/frozen_lockfile/no_lockfile_run.out
Nathan Whitaker c13b6d1413
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)
2024-07-02 15:00:16 -07:00

20 lines
531 B
Text

Download http://localhost:4260/@denotest/add
error: The lockfile is out of date. Run `deno cache --frozen=false` or rerun with `--frozen=false` to update it.
changes:
1 | -
1 | +{
2 | + "version": "3",
3 | + "packages": {
4 | + "specifiers": {
5 | + "npm:@denotest/add@1": "npm:@denotest/add@1.0.0"
6 | + },
7 | + "npm": {
8 | + "@denotest/add@1.0.0": {
9 | + "integrity": "[WILDCARD]",
10 | + "dependencies": {}
11 | + }
12 | + }
13 | + },
14 | + "remote": {}
15 | +}
16 | +