Skip to content

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

@sgowroji

Description

@sgowroji

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4745#01977c12-fddf-4d54-999a-0ff0d117eebd

Platform: Ubuntu

Logs:


(04:09:29) ERROR: Traceback (most recent call last):
--
  | File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/3025b0a37590b9c7d740f1ac50d854c9/external/aspect_bazel_lib++toolchains+bsd_tar_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:29) ERROR: /var/lib/buildkite-agent/builds/bk-docker-j6js/bazel-org-repo-root/bazel-remote/BUILD.bazel:104:10: While resolving toolchains for target //:bazel-remote-image (3a46b04): invalid registered toolchain '@bsd_tar_toolchains//:all': while parsing '@bsd_tar_toolchains//:all': error loading package '@@aspect_bazel_lib++toolchains+bsd_tar_toolchains//': initialization of module 'defs.bzl' failed
  | (04:09:29) ERROR: Analysis of target '//:bazel-remote-image' failed; build aborted
  | (04:09:29) INFO: Elapsed time: 2.776s, Critical Path: 0.02s
  | (04:09:29) INFO: 1 process: 1 internal.
  | (04:09:29) ERROR: Build did NOT complete successfully
  | (04:09:29) 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/buchgr/bazel-remote
git reset 845eaf90b5d33ff85bc466a5f7efdb8c44df749e  --hard
export USE_BAZEL_VERSION=35fb97fe269e42be22fcfa81ff6cdfc4b5bc291e 
bazel build //:bazel-remote //:bazel-remote-image

CC Greenteam @fweikert

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions