Skip to content

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

@sgowroji

Description

@sgowroji

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4745#01977c13-c1c2-4203-8f4f-27cedb1369ed

Platform: MacOS

Logs:

 ERROR: Traceback (most recent call last):
	File "/private/var/tmp/_bazel_buildkite/a9adc3b7c95adb627cb56be31be464ae/external/aspect_bazel_lib++toolchains+jq_toolchains/defs.bzl", line 15, column 20, in <toplevel>
		resolved_toolchain = rule(
Error in rule: rule() got unexpected keyword argument 'incompatible_use_toolchain_transition'
(06:10:04) ERROR: /Users/buildkite/builds/bk-macos-arm64-7ytu/bazel-org-repo-root/buildtools/edit/BUILD.bazel:29:8: While resolving toolchains for target //edit:edit_test (b9ac8f8): invalid registered toolchain '@jq_toolchains//:all': while parsing '@jq_toolchains//:all': error loading package '@@aspect_bazel_lib++toolchains+jq_toolchains//': initialization of module 'defs.bzl' failed
(06:10:04) ERROR: Analysis of target '//edit:edit_test' failed; build aborted
(06:10:04) INFO: Elapsed time: 5.371s, Critical Path: 0.02s
(06:10:04) INFO: 1 process: 1 internal.
(06:10:04) ERROR: Build did NOT complete successfully
(06:10:04) ERROR: No test targets were found, yet testing was requested
(06:10:04) INFO: Build Event Protocol files produced successfully.
(06:10:04) FAILED:

Culprit: Culprit: bazelbuild/bazel@f53608a

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

Steps:

git clone https://github.com/bazelbuild/buildtools
git reset 34c392ac4bc29807fe18f0d8da5e7c773cd17f38  --hard
export USE_BAZEL_VERSION=35fb97fe269e42be22fcfa81ff6cdfc4b5bc291e 
bazel test //...

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