From 3d823b38667ec99dd64f1c86cf1a76b0f4861725 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 13 Feb 2025 09:51:29 +0000 Subject: [PATCH] ci: replace `bazel run @npm2//:sync` with `bazel sync --only=repo` In certain scenarios, running `bazel run @npm2//:sync` does not reliably update the aspect lock files. For example: ``` # Update the version in package.json $ yarn bazel run @npm2//:sync # Lock file is updated $ git restore .aspect $ yarn bazel run @npm2//:sync # Lock file is NOT updated ``` Switching to `bazel sync --only=repo` guarantees that the lock file is consistently updated. More context: https://angular-team.slack.com/archives/C042EU9T5/p1739398554132249 --- renovate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 988480c48d..d00603307b 100644 --- a/renovate.json +++ b/renovate.json @@ -12,7 +12,7 @@ "commands": [ "git restore .yarn/releases/yarn-4.5.0.cjs pnpm-lock.yaml", "yarn install --immutable", - "yarn bazel run @npm2//:sync || true" + "yarn bazel sync --only=repo" ], "fileFilters": [".aspect/rules/external_repository_action_cache/**/*", "pnpm-lock.yaml"], "executionMode": "branch"