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

*_install: only create nodejs or yarn repositories if we need them #3250

Merged
merged 1 commit into from
Jan 17, 2022

Conversation

alexeagle
Copy link
Collaborator

@alexeagle alexeagle commented Jan 15, 2022

Previously we'd create these repositories even if the user already installed node some other way.

Note, this is minor extra breaking change after rc1, but based on testing at one client I think this may be a good idea. This PR demonstrates how it caught some bugs in our e2e/examples where the wrong node (default version) was getting used.

@alexeagle alexeagle force-pushed the rm_auto_node_repositories branch 2 times, most recently from f92ca47 to 72a85cf Compare January 15, 2022 21:13
@jbedard
Copy link
Collaborator

jbedard commented Jan 15, 2022

What was the reason for it? Although deleting is always good 👍

@alexeagle
Copy link
Collaborator Author

It was just to make workspace files shorter in the common case.

@jbedard
Copy link
Collaborator

jbedard commented Jan 15, 2022

What made this a good idea at that client though? Mainly just curious...

@alexeagle
Copy link
Collaborator Author

sorry, being too terse... I meant that at one client I'm seeing the wrong node downloaded so I think it may be a good idea to carry out this PR and remove this extra bit of syntax sugar to make things easier to understand.

@alexeagle alexeagle force-pushed the rm_auto_node_repositories branch 4 times, most recently from ab3fb56 to b350579 Compare January 16, 2022 00:33
@alexeagle alexeagle requested a review from mrmeku as a code owner January 16, 2022 00:33
@alexeagle alexeagle force-pushed the rm_auto_node_repositories branch 5 times, most recently from a676ba2 to f653326 Compare January 16, 2022 20:24
@alexeagle alexeagle changed the title Rm auto node repositories *_install: only create nodejs or yarn repositories if we need them Jan 16, 2022
@alexeagle alexeagle force-pushed the rm_auto_node_repositories branch from f653326 to 7fd6e25 Compare January 16, 2022 20:29
…ries

This convenience is now too magical and confusing.
If the user registers nodejs toolchains, this will create an extra toolchain they don't use,
but can be fetched by rules that reference the default.
It also makes a @Yarn workspace available even for users who only need npm.

BREAKING CHANGE:
you now need to explicitly register nodejs toolchains or use the node_repositories helper
@alexeagle alexeagle merged commit 562f500 into 5.x Jan 17, 2022
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