Skip to content

Commit d267884

Browse files
andersktimabbott
authored andcommitted
node_cache: Run yarn install with --frozen-lockfile.
This way a yarn.lock inconsistent with package.json can’t slip through unnoticed. Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 978357e commit d267884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/lib/node_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def do_yarn_install(target_path, yarn_args, success_stamp, stdout=None, stderr=N
9797
cd_exec = os.path.join(ZULIP_PATH, "scripts/lib/cd_exec")
9898
if os.environ.get('CUSTOM_CA_CERTIFICATES'):
9999
cmds.append([YARN_BIN, "config", "set", "cafile", os.environ['CUSTOM_CA_CERTIFICATES']])
100-
cmds.append([cd_exec, target_path, YARN_BIN, "install", "--non-interactive"] +
100+
cmds.append([cd_exec, target_path, YARN_BIN, "install", "--non-interactive", "--frozen-lockfile"] +
101101
yarn_args)
102102
cmds.append(['touch', success_stamp])
103103

0 commit comments

Comments
 (0)