-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
docs: include pnpm in bzlmod install snippet #1740
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work actually since there is a collision on the pnpm
name. We need to change the name that rules_js in its MODULE.bazel so it is something different. Probably need to change the WORKSPACE one as well and any references to the pnpm
name in the repository rules.
I'm confused, I copied this from a currently-working example. rules_js should allow the root module to specify the pnpm version. |
36994e8
to
43d60d3
Compare
Ahh. I see the difference in the issue I hit the other day. I had
to be able to specify the pnpm version used. That fails with,
The snipped in this PR doesn't do that and it just uses the pnpm version registered by rules_js. The current shape is probably not what users want since they'll want to specify the version used. To do that the user currently has to use something other the
|
Lemme see about fixing that bug while I'm here, was just doing that in another ruleset extensions.bzl |
Yeah #1491 got this wrong, correct pattern is in rules-template |
@jbedard https://github.com/bazel-contrib/rules-template/blob/main/mylang/extensions.bzl#L26-L51 shows the way it's meant to select a resolved version rather than just prevent usage. I'll send a separate PR with the fix. |
Fixes #1737
Changes are visible to end-users: no
Test plan
None