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

pass --no-use flag when sourcing nvm in build script #41479

Merged
merged 1 commit into from
Feb 9, 2018

Conversation

ggilmore
Copy link
Contributor

@ggilmore ggilmore commented Jan 11, 2018

The command that sources nvm.sh discovers the .nvmrc file in the repository. It will then try to nvm use 8.9.2 (at this time of writing), but a fresh build agent won't have installed any node version yet (chicken and egg problem). This issue causes the command to silently fail. The fix is to pass the --no-use flag to nvm.sh, which will skip this discovery process. This allows the build to proceed normally.

@joaomoreno joaomoreno merged commit 7f5c6ff into microsoft:master Feb 9, 2018
@joaomoreno
Copy link
Member

Thanks! 🍻

@joaomoreno joaomoreno added this to the February 2018 milestone Feb 9, 2018
@joaomoreno joaomoreno added the engineering VS Code - Build / issue tracking / etc. label Feb 9, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
engineering VS Code - Build / issue tracking / etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants