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

feat: provide @nodejs repository #3610

Merged
merged 1 commit into from
Dec 12, 2022
Merged

feat: provide @nodejs repository #3610

merged 1 commit into from
Dec 12, 2022

Conversation

alexeagle
Copy link
Collaborator

@alexeagle alexeagle commented Dec 12, 2022

Generally it's a bad practice that the user calls a repository rule (nodejs_register_toolchains) with a name, and this doesn't result in a repository with that name.

Today you call nodejs_register_toolchains(name="my_node") and get external/my_node_host

This adds a new call in the macro to the underlying repository rule without the suffix. Leaves the old _host variant around to make this a non-breaking change.

We did the same fix in python: bazelbuild/rules_python#656

Fixes #3375

Generally it's a bad practice that the user calls a repository rule (nodejs_register_toolchains) with a name, and this doesn't result in a repository with that name.

Leave the old _host variant around to make this a non-breaking change.

We did the same fix in python: bazelbuild/rules_python#656

Fixes #3375
Copy link

@gregmagolan-codaio gregmagolan-codaio left a comment

Choose a reason for hiding this comment

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

👍

@alexeagle alexeagle merged commit a5755eb into stable Dec 12, 2022
@alexeagle alexeagle deleted the i3375 branch December 12, 2022 23:27
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.

Rename generated repo nodejs_host to nodejs
3 participants