Skip to content

refactor: move toolchain registration call to new rules_js_register_toolchains WORKSPACE function#1593

Merged
gregmagolan merged 1 commit into
2.xfrom
rjs2_25
Apr 9, 2024
Merged

refactor: move toolchain registration call to new rules_js_register_toolchains WORKSPACE function#1593
gregmagolan merged 1 commit into
2.xfrom
rjs2_25

Conversation

@gregmagolan

@gregmagolan gregmagolan commented Apr 3, 2024

Copy link
Copy Markdown
Member

Long term this will all go away once we drop WORKSPACE support in our rule sets.

@gregmagolan gregmagolan force-pushed the rjs2_25 branch 4 times, most recently from 07c2baa to 8937605 Compare April 3, 2024 20:40
Comment thread WORKSPACE Outdated
Comment thread e2e/js_run_devserver/MODULE.bazel Outdated
Comment thread npm/private/npm_package.bzl
@jbedard

jbedard commented Apr 4, 2024

Copy link
Copy Markdown
Member

What was the major reason for this? I don't recall if we've discussed it before?

@gregmagolan

Copy link
Copy Markdown
Member Author

What was the major reason for this? I don't recall if we've discussed it before?

Primarily because we're sneaking in toolchain registrations in WORKSPACE in npm_translate_lock and npm_import which is not a great convention and bad layering. In theory a user could use rules_js without npm_translate_lock and npm_import and they would have to look into the implementation of npm_translate_lock to see what toolchains are needed. Adding an explicity rules_js_configure makes rules_js more like other rule sets where toolchains are registered explicitly in WORKSPACE and not implicitly in an unrelated repository rule.

@gregmagolan gregmagolan force-pushed the rjs2_25 branch 7 times, most recently from a60a76e to 8527b49 Compare April 5, 2024 14:36
@gregmagolan gregmagolan force-pushed the rjs2_25 branch 4 times, most recently from 9a40f81 to 4b5f986 Compare April 6, 2024 04:43
@gregmagolan gregmagolan changed the title refactor: upgrade to latest rules_nodejs 6.x and move toolchain registration call to new rules_js_configure WORKSPACE function refactor: move toolchain registration call to new rules_js_configure WORKSPACE function Apr 6, 2024
@gregmagolan gregmagolan force-pushed the rjs2_25 branch 3 times, most recently from e9ec6c3 to 33810af Compare April 6, 2024 05:49
@gregmagolan gregmagolan requested review from alexeagle and jbedard April 6, 2024 05:52
@gregmagolan gregmagolan merged commit 4eb3232 into 2.x Apr 9, 2024
@gregmagolan gregmagolan deleted the rjs2_25 branch April 9, 2024 22:08
gregmagolan added a commit that referenced this pull request Apr 13, 2024
gregmagolan added a commit that referenced this pull request Apr 13, 2024
gregmagolan added a commit that referenced this pull request Apr 15, 2024
gregmagolan added a commit that referenced this pull request Apr 16, 2024
gregmagolan added a commit that referenced this pull request Apr 19, 2024
jbedard pushed a commit that referenced this pull request Apr 19, 2024
gregmagolan added a commit that referenced this pull request Apr 20, 2024
gregmagolan added a commit that referenced this pull request Apr 21, 2024
gregmagolan added a commit that referenced this pull request Apr 21, 2024
gregmagolan added a commit that referenced this pull request Apr 22, 2024
gregmagolan added a commit that referenced this pull request Apr 23, 2024
gregmagolan added a commit that referenced this pull request Apr 24, 2024
gregmagolan added a commit that referenced this pull request Apr 26, 2024
gregmagolan added a commit that referenced this pull request Apr 28, 2024
gregmagolan added a commit that referenced this pull request Apr 28, 2024
gregmagolan added a commit that referenced this pull request Apr 29, 2024
@gregmagolan gregmagolan mentioned this pull request Apr 29, 2024
21 tasks
gregmagolan added a commit that referenced this pull request May 6, 2024
jbedard pushed a commit that referenced this pull request May 6, 2024
gregmagolan added a commit that referenced this pull request May 7, 2024
gregmagolan added a commit that referenced this pull request May 7, 2024
gregmagolan added a commit that referenced this pull request May 7, 2024
gregmagolan added a commit that referenced this pull request May 7, 2024
gregmagolan added a commit that referenced this pull request May 7, 2024
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.

3 participants