-
Notifications
You must be signed in to change notification settings - Fork 519
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
WIP: Multiple Node Versions in Single Workspace #2148
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
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.
cool, looks like a good start, thanks for tackling this!
we should have a test somewhere - maybe update an existing e2e or example to use both node 12 and also node 14
@@ -724,10 +724,16 @@ def node_repositories(**kwargs): | |||
minimum_bazel_version = "2.1.0", | |||
) | |||
|
|||
# allow user to set a custom name (eg: node11, node12) to support multiple versions | |||
name = kwargs.get('name', 'nodejs') |
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.
you can do this in one step - pop returns the element
hey @parisholley any update on this one? |
i decided to just upgrade everything to latest node so i stopped work on it |
This Pull Request has been automatically marked as stale because it has not had any activity for 90 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs! |
This PR was automatically closed because it went two weeks without a reply since it was labeled "Can Close?" |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #434
What is the new behavior?
User can pass a custom name to node_repositories (allowing multiple node versions at the same time), then the other rules in the project allow setting a customer "node_repository" to point to the custom version.
Does this PR introduce a breaking change?
Other information
Submitting this pull as a PR as i'm not all that familiar with bazel and want to get some thought before going all the way down the path of supporting dynamic @nodejs alias names, given there are a quite a few places where the alias is hardedcode and no ctx is available (so some deeper refactoring would be needed).