-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: update_pnpm_lock fails under Bzlmod, retry fixes it #1445
Comments
Adding some |
Got some design feedback from the Bazel team: https://bazelbuild.slack.com/archives/C014RARENH0/p1705451482052209 |
Support for this has been removed (bzlmod and workspace) in 2.x: ffd4583 |
…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. ```
…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. ```
What happened?
Under bzlmod,
update_pnpm_lock
fails on the first attempt.Version
HEAD
How to reproduce
In rules_js,
cd e2e/npm_translate_lock
"semver": "7.5.4"
then
bazel build ...
gives an error:Simply running the same
bazel build
command again fixes it.Any other information?
No response
The text was updated successfully, but these errors were encountered: