Skip to content

[Bazel CI]Error in rule: rule() got unexpected keyword argument 'incompatible_use_toolchain_transition'  #3002

Closed as not planned
@sgowroji

Description

@sgowroji

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4745#01977c12-ec35-4d5c-a802-775bf9bcf803

Platform: Windows

Logs:

(04:09:35) ERROR: Traceback (most recent call last):
	File "C:/b/gwgutza2/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'
(04:09:36) ERROR: C:/b/bk-windows-xmds/bazel-org-repo-root/rules_python/examples/bzlmod/BUILD.bazel:61:24: While resolving toolchains for target //:test_with_transition (3de70f4): 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)
(04:09:36) ERROR: Analysis of target '//:test_with_transition' failed; build aborted
(04:09:36) INFO: Elapsed time: 9.592s, Critical Path: 0.06s
(04:09:36) INFO: 1 process: 1 internal.
(04:09:36) ERROR: Build did NOT complete successfully
(04:09:36) FAILED:

Culprit: bazelbuild/bazel@f53608a

To Fix this issue need to Remove no-op incompatible_use_toolchain_transition param

Steps:

git clone https://github.com/bazel-contrib/rules_python
git reset 94e08f7dfe61962fa50508f01ea05c624307d487  --hard
export USE_BAZEL_VERSION=35fb97fe269e42be22fcfa81ff6cdfc4b5bc291e 
bazel build -- ...

CC Greenteam @fweikert

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions