Skip to content

feat: provide @nodejs repository - #3610

Merged
alexeagle merged 1 commit into
stablefrom
i3375
Dec 12, 2022
Merged

feat: provide @nodejs repository#3610
alexeagle merged 1 commit into
stablefrom
i3375

Conversation

@alexeagle

@alexeagle alexeagle commented Dec 12, 2022

Copy link
Copy Markdown
Collaborator

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: bazel-contrib/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: bazel-contrib/rules_python#656

Fixes #3375

@gregmagolan-codaio gregmagolan-codaio left a comment

Copy link
Copy Markdown

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