-
Notifications
You must be signed in to change notification settings - Fork 519
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
Yarn install runs on every build #3515
Comments
See #1627 - are you really running just |
Yes, I'm running just 2 bazel builds in a row. All I see in the rebuild explain file is this after the second rebuild:
Nothing about nodejs / yarn / npm... I couldn't find a way to have the line "running yarn install" in some text log (even with --curses=no...), so I recorded a video: Screen.recording.2022-08-01.00.56.49.webmThanks, |
I did more digging on this. I couldn't find the real reason I suppose, but adding I'll close for now. |
🐞 bug report
Affected Rule
The issue is caused by the rule: rules_nodejs
Is this a regression?
I don't think so, but I'm not sure.
Description
On every build, even a "repeat build" immediately after a successful build, yarn install is re-ran, even if package.json, or yarn.lock are unchanged.
🔬 Minimal Reproduction
bazel build //some:target # -> success
bazel build //some:target # -> reruns yarn install
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_nodejs version:
(Please check that you have matching versions between WORKSPACE file and
@bazel/*
npm packages.)Anything else relevant?
See this trace from the second build which should be near instant.
You can see the //external:npm running for nearly 17s in my project, out of the 25 total for that build.
This is especially visible and costly with ibazel when the incremental rebuilds should be very small.
The text was updated successfully, but these errors were encountered: