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

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

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

gregmagolan
Copy link
Member

@gregmagolan gregmagolan commented Apr 3, 2024

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
WORKSPACE Outdated Show resolved Hide resolved
@jbedard
Copy link
Member

jbedard commented Apr 4, 2024

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

@gregmagolan
Copy link
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 jbedard and alexeagle April 6, 2024 05:52
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
jbedard pushed a commit that referenced this pull request May 8, 2024
gregmagolan added a commit that referenced this pull request May 10, 2024
gregmagolan added a commit that referenced this pull request May 10, 2024
gregmagolan added a commit that referenced this pull request May 13, 2024
jbedard pushed a commit to jbedard/rules_js that referenced this pull request May 14, 2024
jbedard pushed a commit that referenced this pull request May 14, 2024
jbedard pushed a commit to jbedard/rules_js that referenced this pull request May 16, 2024
gregmagolan added a commit that referenced this pull request May 20, 2024
gregmagolan added a commit that referenced this pull request May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants