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

Fix for yarn path bug #153

Merged
merged 4 commits into from
Sep 23, 2018
Merged

Fix for yarn path bug #153

merged 4 commits into from
Sep 23, 2018

Conversation

mikrostew
Copy link
Contributor

@mikrostew mikrostew commented Sep 20, 2018

This changes how PATHs are constructed for running Node, Yarn, and package executables.

Every tool that is run gets the current versions of Node and Yarn in the PATH, without the Notion shims. This provides the right environment for project and user toolchains, and fixes the bug where Yarn was run with the wrong version of Node in the PATH.

I also refactored the path code, because there was a lot of duplication there, and removed unwrap() in favor of handling the errors instead.

Closes #146.

Copy link
Collaborator

@dherman dherman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good. I still don't love the env.rs code but this is a targeted fix. We can try to get more precise with #141.

@dherman dherman merged commit 6201ad8 into volta-cli:master Sep 23, 2018
@mikrostew mikrostew deleted the yarn-node-fix branch September 24, 2018 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Yarn is running with the wrong version of Node
2 participants