-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Binary caching does not respect cache setting #856
Comments
We're using gitlab, but I'm able to reproduce the issue just on my mac with npm v6.10.3 and node v12.10.0 At the end of this screenshot you can see that even though the npm cache has been placed inside the project directory (consistent with the env setting), sentry-cli's cache for the binary has been placed at If we run I would assume this behavior is because of this line in the setup script, but I don't understand why |
Turns out it was an issue with |
Good to know, thanks! |
Hi,
I'm currently working on tuning our CI performance but I've run into an issue where sentry's
install
script is always downloading the binary to~/.npm/
rather than the directory configured in my.npmrc
or the directory specified when runningnpm ci --cache myProjectCacheFolder
. Because it's not installing to the correct cache folder, our runners can't pick it up, which means it gets redownloaded for each job (🙁)I don't have this issue with any other package, as
~/.npm/
only has thesentry-cli
folder (everything else is in my project's cache folder). I also added a little script to my package.jsonand running the command outputs
Which means the setting is definitely correct at the "top leve", but perhaps not carried through into the install script's environment. If you have any ideas at all for how to resolve this, I'd be really appreciative, as I've been scratching my head on this one all day
The text was updated successfully, but these errors were encountered: