Skip to content

[Bazel CI] Error unexpected keyword argument 'incompatible_use_toolchain_transition'  #607

@sgowroji

Description

@sgowroji

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4745#01977c12-f345-466c-b660-49d7fdad4189

Platform: Windows, MacOS, Ubuntu

Logs:


ERROR: Traceback (most recent call last):
--
  | File "C:/b/abhbf64b/external/aspect_bazel_lib++toolchains+yq_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:35) ERROR: C:/b/bk-windows-dvc9/bazel-org-repo-root/examples/java-maven/BUILD:20:10: While resolving toolchains for target //:tests (76e4384): invalid registered toolchain '@yq_toolchains//:all': while parsing '@yq_toolchains//:all': error loading package '@@aspect_bazel_lib++toolchains+yq_toolchains//': initialization of module 'defs.bzl' failed
  | (04:09:35) ERROR: Analysis of target '//:tests' failed; build aborted
  | (04:09:35) INFO: Elapsed time: 7.053s, Critical Path: 0.52s
  | (04:09:35) INFO: 1 process: 1 internal.
  | (04:09:35) ERROR: Build did NOT complete successfully
  | (04:09:35) ERROR: No test targets were found, yet testing was requested
  | (04:09:35) FAILED:


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

Culprit: bazelbuild/bazel@f53608a

Steps:

git clone https://github.com/bazelbuild/examples
git reset 6f37bcdc6e71023409a03ea047369c5a6f754862  --hard
export USE_BAZEL_VERSION=35fb97fe269e42be22fcfa81ff6cdfc4b5bc291e
cd ../java-maven
bazel test //:tests 

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