Skip to content
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]: npm lifecycle hooks re-evaluated without any change to inputs #1998

Open
jbedard opened this issue Oct 22, 2024 · 3 comments
Open

[Bug]: npm lifecycle hooks re-evaluated without any change to inputs #1998

jbedard opened this issue Oct 22, 2024 · 3 comments

Comments

@jbedard
Copy link
Member

jbedard commented Oct 22, 2024

There have been reports of lifecycle hooks re-running unnecessarily, when no inputs change.

@samsternatretool
Copy link

Our use case: we depend on nodegit which has a very expensive (120s+) lifecycle hook:

[85,797 / 85,799] Running lifecycle hooks on npm package nodegit@0.28.0-alpha.11_t2g22a3cflk65wz3kqpekiolbu [for tool]; 45s local

We literally never change the version of nodegit we use so I'd expect that this lifecycle hook output is cached on my laptop forever (or at least until I clear it manually) but that is not the case. It seems that some set of conditions cause this thing to rebuild sometimes ... I have not figured out what they are.

@matthewjh
Copy link

Possibly related? If seen on MacOS:

bazel-contrib/bazel-lib#887

@samsternatretool
Copy link

samsternatretool commented Oct 24, 2024

@matthewjh that's a really interesting theory! And yes I am on macOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants