Skip to content

Commit fbcb913

Browse files
committed
build: workaround for ERROR: An error occurred during the fetch of repository 'npm2'
In some cases `yarn bazel run @npm2//:sync` will fail in the first run see: aspect-build/rules_js#1445 as a workaround we run a build before. ``` ERROR: An error occurred during the fetch of repository 'npm2': Traceback (most recent call last): File "/usr/local/google/home/alanagius/.cache/bazel/_bazel_alanagius/2fa837e4c5ce941f68b762e5f8e7dc4d/external/aspect_rules_js/npm/private/npm_translate_lock.bzl", line 112, column 21, in _npm_translate_lock_impl fail(msg) Error in fail: INFO: pnpm-lock.yaml file updated. Please run your build again. ```
1 parent 653b5c4 commit fbcb913

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.aspect/rules/external_repository_action_cache/npm_translate_lock_MzA5NzUwNzMx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Input hashes for repository rule npm_translate_lock(name = "npm2", pnpm_lock = "@//:pnpm-lock.yaml").
33
# This file should be checked into version control along with the pnpm-lock.yaml file.
44
.npmrc=-2023857461
5-
package.json=1044460161
6-
pnpm-lock.yaml=451366521
5+
package.json=1485890683
6+
pnpm-lock.yaml=-1807446371
77
pnpm-workspace.yaml=1711114604
88
yarn.lock=-892267542

pnpm-lock.yaml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

renovate.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"commands": [
1313
"git restore .yarn/releases/yarn-4.5.0.cjs",
1414
"yarn install --frozen-lockfile --non-interactive",
15+
"yarn bazel build //tools/...",
1516
"yarn bazel run @npm2//:sync"
1617
],
1718
"fileFilters": [".aspect/rules/external_repository_action_cache/**/*", "pnpm-lock.yaml"],

0 commit comments

Comments
 (0)