-
Notifications
You must be signed in to change notification settings - Fork 215
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
Volta npm shim ignores the --dry-run flag #1597
Comments
Thanks for the report! Is this package-manager-specific behavior or do we get it wrong for regular packages as well? |
I think it is specific to the special packages that volta considers "tools" like npm, pnpm, yarn, etc. But there's also a volta bug in the general package case, because it thinks it should be trying to identify a newly installed package when there isn't one.
|
Ah, very interesting. Thanks for flagging up that second issue as well! If you have time and interest to dig in, the relevant code is here: volta/crates/volta-core/src/tool/package/install.rs Lines 1 to 58 in 589116d
(No worries if not!) |
Co-authored-by: Rob Jackson <[email protected]>
Co-authored-by: Rob Jackson <[email protected]>
Running
npm install -g --dry-run <package>
should not actually install anything. Volta's npm shim doesn't honor the--dry-run
flag and does the actual install.The text was updated successfully, but these errors were encountered: