-
Notifications
You must be signed in to change notification settings - Fork 11.9k
build: update dependency rules_nodejs to v6.6.0 #31557
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
Conversation
See associated pull request for more information. Closes angular#31552 as a pr takeover
| package_json = "package.json", | ||
| ) | ||
|
|
||
| # This is needed following https://github.com/bazel-contrib/rules_nodejs/pull/3859 |
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.
For context here's the error
INFO: ToolchainResolution: Performing resolution of @@rules_nodejs~//nodejs:toolchain_type for target platform //tools:windows_x64
ToolchainResolution: Rejected toolchain @@rules_nodejs~~node~nodejs_linux_amd64//:toolchain; mismatching values: linux
ToolchainResolution: Rejected toolchain @@rules_nodejs~~node~nodejs_linux_arm64//:toolchain; mismatching values: linux, aarch64
ToolchainResolution: Rejected toolchain @@rules_nodejs~~node~nodejs_linux_s390x//:toolchain; mismatching values: linux, s390x
ToolchainResolution: Rejected toolchain @@rules_nodejs~~node~nodejs_linux_ppc64le//:toolchain; mismatching values: linux, ppc
ToolchainResolution: Rejected toolchain @@rules_nodejs~~node~nodejs_darwin_amd64//:toolchain; mismatching values: osx
ToolchainResolution: Rejected toolchain @@rules_nodejs~~node~nodejs_darwin_arm64//:toolchain; mismatching values: osx, aarch64
ToolchainResolution: Toolchain @@rules_nodejs~~node~nodejs_windows_amd64//:toolchain is compatible with target plaform, searching for execution platforms:
ToolchainResolution: Incompatible execution platform @@platforms//host:host; mismatching values: windows
ToolchainResolution: Rejected toolchain @@rules_nodejs~~node~nodejs_windows_arm64//:toolchain; mismatching values: aarch64
ToolchainResolution: No @@rules_nodejs~//nodejs:toolchain_type toolchain found for target platform //tools:windows_x64.
|
@josephperrott, is there a more elegant way of doing this? |
|
@alan-agius4 I don't think there is really a better way of doing this. Bazel modules don't allow macros so it just all has to be very explicit. I wish they would have set up the runtime toolchains to be part of an extension, but I haven't dove in enough to know if there is a very obvious reason why we can't do that. |
josephperrott
left a comment
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.
LGTM
See associated pull request for more information.
Closes #31552 as a pr takeover