-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
With 0.29.0, nvm install 4
fails when -e
and -o pipefail
shell options are set
#865
Comments
Thanks for the report! These options are not compatible with I'd advise against using those options, and rely on explicit failure detections in your tests instead of simply failing on any nonzero exit code. The fact that it's different between |
@ljharb Okay, I'm happy to add failure detection to my script. Can you point me to the documentation for |
The final exit codes will be 0. The issue you're seeing is that because I'm suggesting adding explicit failure detection to your tests, not |
In that case, I firmly disagree with your stance on |
Since You could try setting |
See discussion in nvm-sh#865.
Thank you for the explanation, I appreciate it. I'll send a PR to add |
The following script will fail with exit code 1:
If you replace
4
with0.12
or0.10
, it works. If the-e
and-o pipefail
options are not set, it works. And finally, if you replace the nvm versionv0.29.0
withv0.28.0
, it works.We found this because our CI script does the above. Here's a reduced test case.
The text was updated successfully, but these errors were encountered: