-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Replace Chocolatey nodejs dependency with nodejs-lts. #5925
Conversation
The LTS releases of nodejs are less likely to break other parts of a project.
The test failures on test-linux-node6 don't seem related to my changes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense to me. Paging @Daniel15 in case he wants to take a look.
@@ -36,7 +36,7 @@ utilization. | |||
<bugTrackerUrl>https://github.com/yarnpkg/yarn/issues</bugTrackerUrl> | |||
<releaseNotes>https://github.com/yarnpkg/yarn/releases/tag/v$version$</releaseNotes> | |||
<dependencies> | |||
<dependency id="nodejs.install" version="6.0" /> | |||
<dependency id="nodejs-lts" version="6.0" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also bump this to 8, right?
Sorry I missed this. Seems fine to me. I wish we could specify that either nodejs.install or nodejs-lts is fine. |
**Summary** Fixes #6439 The chocolately install has always been full of log spam due to an incorrectly written `/l*v` flag, but those logs are also unneeded since the output has no useful info so I just removed them (this can be reversed to just fix the flag if y'all really want it back). This also removes the bad `nodejs-lts` nuget dependency added in #5925. It now has no dependency, and instead logs out to inform the user to install node if it's missing. **Test plan** * `choco uninstall yarn` * Replace the `{VERSION}` and `{CHECKSUM}` placeholders manually or do a full build (I manually replaced) * `.\chocolateyinstall.ps1`
Summary
This PR replaces the Chocolatey package's nodejs.install dependency with nodejs-lts. Since Yarn doesn't require the latest version of NodeJS depending on the LTS release should cause less situations where a user's other tools are not compatible with the NodeJS version installed via Chocolatey.
The nodejs.install package's documentation recommends depending on nodejs-lts, and some people have requested this change on the Chocolatey discussion page.
Test plan
I verified that the Chocolatey package is buildable and installs, I don't expect this to cause issues since the change is quite trivial.