rules_python
rules_python copied to clipboard
[Bazel CI] invalid registered toolchain '@nodejs_toolchains//:all': while parsing '@nodejs_toolchains//:all': error loading package
CI: https://buildkite.com/bazel/bazel-at-head-plus-disabled/builds/2561#0199eba1-1362-4c47-9cf7-401a22553ebb
Platform: Windows,MacOS, Ubuntu
Logs:
(08:09:02) WARNING: /Users/buildkite/builds/bk-macos-intel-9i1g/bazel-org-repo-root/rules_python/examples/bzlmod/py_proto_library/example.com/proto/BUILD.bazel:4:17: target '//py_proto_library/example.com/proto:pricetag_py_pb2' is deprecated: Use py_proto_library from protobuf repository
(08:09:04) ERROR: Traceback (most recent call last):
File "/private/var/tmp/_bazel_buildkite/e8e9b7b3251339fe2f20400b8ca1a3ae/external/rules_nodejs++node+nodejs_toolchains/defs.bzl", line 15, column 20, in <toplevel>
resolved_toolchain = rule(
Error in rule: rule() got unexpected keyword argument 'incompatible_use_toolchain_transition'
(08:09:05) ERROR: /Users/buildkite/builds/bk-macos-intel-9i1g/bazel-org-repo-root/rules_python/examples/bzlmod/BUILD.bazel:78:11: While resolving toolchains for target //:all_data_requirements_build_test (077c4e5): invalid registered toolchain '@nodejs_toolchains//:all': while parsing '@nodejs_toolchains//:all': error loading package '@@rules_nodejs++node+nodejs_toolchains//': initialization of module 'defs.bzl' failed
Target //:requirements_3_10 up-to-date (nothing to build)
(08:09:05) ERROR: Analysis of target '//:all_data_requirements_build_test' failed; build aborted
(08:09:05) INFO: Elapsed time: 9.803s, Critical Path: 0.14s
(08:09:05) INFO: 1 process: 1 internal.
(08:09:05) ERROR: Build did NOT complete successfully
(08:09:05) FAILED:
Culprit:
Steps:
git clone https://github.com/bazel-contrib/rules_python
git reset f1e585fc9927aeaf87cf43845e1d37289f881e99 --hard
export USE_BAZEL_VERSION=afd8d4bd0f0449dec1fb7a14f9e44b16cde72aaf
bazel build ... @rules_python//examples/wheel/...
CC Greenteam @kotlaja