-
Notifications
You must be signed in to change notification settings - Fork 522
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
Multiple Node versions in a single workspace #434
Comments
Having multiple nodejs versions in a single workspace sounds like a useful feature however we are looking at updating the nodejs rules to use Bazel toolchains for node (https://docs.bazel.build/versions/master/toolchains.html) to support cross-platform remote bazel execution. For example, if you are building on OSX you can still execute actions on GCP (https://blog.bazel.build/2018/10/05/remote-build-execution.html). Looking at the current code it looks like this shouldn't be too hard to achieve what you'd like at the moment and would be happy to accept a PR if you want to take a shot at it. We'll be updating to Bazel toolchains for before 1.0 most likely which would invalidate the work but hopefully toolchains will make it easier to achieve this. |
Do you have a rough idea of the timeline for migrating to toolchains? If it's later than Q1 then I'll take a look at a PR. Otherwise I'm happy to wait. |
/cc @Globegitter Something to keep in mind when you're looking at toolchains. Thanks. |
#645 |
This issue 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 issue was automatically closed because it went two weeks without a reply since it was labeled "Can Close?" |
Right now,
node_repositories
always creates a single_nodejs_repo
with the namenodejs
. Is there any particular reason that it doesn't accept aname
parameter to allow creating multiple_nodejs_repo
instances?This would allow having multiple Node versions (say, 8.x and 10.x) in a single project, which is a real-life use case for me.
If this isn't an active design choice or constraint, I'd be happy to work on a PR. It looks like
@nodejs
is only explicitly referenced in a few places, so it should be straightforward to allow overriding it.The text was updated successfully, but these errors were encountered: