-
Notifications
You must be signed in to change notification settings - Fork 521
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
Let user specify any version of node/npm/yarn #4
Comments
I think we ought to support LTS versions of node - that means according to the schedule we should do it next month. https://github.com/nodejs/LTS |
I'd strongly advocate for making the version user specified. We've had serious issues with even minor version bumps, and would need to be able to choose the node version we use. |
Fair enough. The only hard part I see is that I need a URL to fetch node from, and it's platform dependent, plus I have manually mirrored the current version to our CDN Also I have to pick which node versions these rules are tested against. And we want rules to be portable, so if you write a node program requiring 8, then all users must upgrade. Of course that problem exists without Bazel involved. |
For ease of use, the current setup is great. If adding flexibility, major version is not enough for us. For example, a patch upgrade from 4.8.2 to 4.8.4 caused segfaults in production for one of our services because of issues with a native module at that version. So it's important to be able to hold back certain I was reading about platforms earlier, and it seems that might be the right way to go about this. Users could define toolchains like As an intermediate that requires less fussing around with new concepts, the |
@kamalmarhubi I agree you need the ability to get any specific version. I'll look into platforms, but the simple answer is to change the In addition to allowing you to specify any version, I just saw that Node 8 is now LTS so we should upgrade the default version that ships with the rules. |
rules_go also allows to swap out the version of the go sdk, might be worth synchronising with how it is done there. |
Fixed in #183 |
rules_nodejs
forces Node.js v6. However, I'd like to use v8.It would be great to have a way to specify which version I'm using.
The text was updated successfully, but these errors were encountered: