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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
yarn_versions helper only includes v1 #3071
Comments
https://github.com/bazelbuild/rules_nodejs/blob/d2f9c4137543c3ed8477ca3aa73b2aa0fcbd7fe9/nodejs/private/yarn_versions.bzl while that comment still refers to an open issue, the list of supported yarn versions could be extended now. But that could require modifications of the download functions, as |
I noticed from the example above that https://github.com/yarnpkg/berry/archive/refs/tags/@yarnpkg/cli/3.1.0.tar.gz is over 150MB file so I don't think that's quite the right workaround either. |
Re-opening this issue to get the yarn_versions builtin to support more versions. |
@alexeagle I see you made a PR for this and closed it. Would you mind explaining the current status on this please? |
friendly ping? |
I checked out that pr again, and commented there. It doesn't actually work, and I don't have a client who needs it. Contributions welcome of course 馃榿 |
This issue has been automatically marked as stale because it has not had any activity for 6 months. It will be closed if no further activity occurs in 30 days. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs! |
Just to wrap this up, rules_nodejs is no longer maintained and rules_js standardized on pnpm because it's lockfile allows us to port the node_modules layout to starlark, which allows lazy install of only needed packages for the requested build and test targets |
dumb question but that means pnpm is the way to go and yarn berry won't be supported, right? @alexeagle |
that does sound like a major gain |
This issue has been automatically marked as stale because it has not had any activity for 6 months. It will be closed if no further activity occurs in 30 days. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs! |
This issue was automatically closed because it went 30 days without any activity since it was labeled "Can Close?" |
馃殌 Yarn Berry Support
Relevant Rules
yarn_install
Description
When trying to use Yarn berry with the yarn_install rule, an error occurs because it implicitly sets the
--mutex network
, which is not supported by Yarn Berry.The following implementation shows that the mutex option can be disabled by setting the
use_global_yarn_cache
to false, but the--cache-folder
is implicitly set next.rules_nodejs/internal/npm_install/npm_install.bzl
Lines 825 to 834 in aa9882b
In Yarn Berry, setting the
--cache-folder
in the CLI is deprecated, so an error will occur in this case as well.https://github.com/yarnpkg/berry/blob/83311e1d4dec7fb6c0ead21f37efa9b687be58b9/packages/plugin-essentials/sources/commands/install.ts#L211-L219
The following is an example of WORKSPACE.bazel for using Yarn Berry.
Describe the solution you'd like
The ideas suggested in the issue comments below are helpful.
#1599 (comment)
Personally, I think the 1st idea is better, as it seems to be easy to implement without destructive changes.
An example is shown below.
The text was updated successfully, but these errors were encountered: