Skip to content

Commit

Permalink
build: workaround for `ERROR: An error occurred during the fetch of r…
Browse files Browse the repository at this point in the history
…epository '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.
```
  • Loading branch information
alan-agius4 committed Dec 17, 2024
1 parent 653b5c4 commit fbcb913
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Input hashes for repository rule npm_translate_lock(name = "npm2", pnpm_lock = "@//:pnpm-lock.yaml").
# This file should be checked into version control along with the pnpm-lock.yaml file.
.npmrc=-2023857461
package.json=1044460161
pnpm-lock.yaml=451366521
package.json=1485890683
pnpm-lock.yaml=-1807446371
pnpm-workspace.yaml=1711114604
yarn.lock=-892267542
1 change: 1 addition & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"commands": [
"git restore .yarn/releases/yarn-4.5.0.cjs",
"yarn install --frozen-lockfile --non-interactive",
"yarn bazel build //tools/...",
"yarn bazel run @npm2//:sync"
],
"fileFilters": [".aspect/rules/external_repository_action_cache/**/*", "pnpm-lock.yaml"],
Expand Down

0 comments on commit fbcb913

Please sign in to comment.