From 177ea83f20d1e6557865e611293ce934450a252b Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Wed, 12 Jul 2023 10:17:14 -0230 Subject: [PATCH] Replace deprecated install command (#19968) The `--frozen-lockfile` flag is not supported by Yarn v3. It has been replaced by the Yarn v3 equivalent, which is `--immutable`. Additionally, the `deps-install` script was deleted and this command was inlined in the CircleCI configuration. I don't think we need to maintain a separate script just for one command. --- .circleci/config.yml | 3 +-- .circleci/scripts/deps-install.sh | 9 --------- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100755 .circleci/scripts/deps-install.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index 496486a16..a8522d1ad 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -363,8 +363,7 @@ jobs: fi - run: name: Install deps - command: | - .circleci/scripts/deps-install.sh + command: yarn --immutable - save_cache: key: dependency-cache-v1-{{ checksum "yarn.lock" }} paths: diff --git a/.circleci/scripts/deps-install.sh b/.circleci/scripts/deps-install.sh deleted file mode 100755 index ddcf2cf8c..000000000 --- a/.circleci/scripts/deps-install.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -# Print commands and their arguments as they are executed. -set -x -# Exit immediately if a command exits with a non-zero status. -set -e - -yarn install --frozen-lockfile -