Skip to content

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

Merged
joaomoreno merged 1 commit intomicrosoft:masterfrom
ggilmore:master
Feb 9, 2018
Merged

pass --no-use flag when sourcing nvm in build script #41479
joaomoreno merged 1 commit intomicrosoft:masterfrom
ggilmore:master

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