mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
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 <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
978357e55e
commit
d267884cc1
@@ -97,7 +97,7 @@ def do_yarn_install(target_path, yarn_args, success_stamp, stdout=None, stderr=N
|
||||
cd_exec = os.path.join(ZULIP_PATH, "scripts/lib/cd_exec")
|
||||
if os.environ.get('CUSTOM_CA_CERTIFICATES'):
|
||||
cmds.append([YARN_BIN, "config", "set", "cafile", os.environ['CUSTOM_CA_CERTIFICATES']])
|
||||
cmds.append([cd_exec, target_path, YARN_BIN, "install", "--non-interactive"] +
|
||||
cmds.append([cd_exec, target_path, YARN_BIN, "install", "--non-interactive", "--frozen-lockfile"] +
|
||||
yarn_args)
|
||||
cmds.append(['touch', success_stamp])
|
||||
|
||||
|
Reference in New Issue
Block a user