Skip to content

[Bazel CI] Error toolchain_config_utils.bzl is invalid because 'cc/toolchains' is not a package.  #2310

@sgowroji

Description

@sgowroji

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4205#019298ab-9bbe-4ef2-b7ec-e35a9a8fd69f

Platform: MacOS

Logs:

ERROR: Error computing the main repository mapping: at /private/var/tmp/_bazel_buildkite/9f47f6beb72f15412af12490e86ed0ba/external/bazel_tools/tools/cpp/cc_configure.bzl:18:6: Label '@@rules_cc//cc/toolchains:toolchain_config_utils.bzl' is invalid because 'cc/toolchains' is not a package; perhaps you meant to put the colon here: '@@rules_cc//cc:toolchains/toolchain_config_utils.bzl'?

Culprit: bazelbuild/bazel@1c4e78a

Steps:

git clone https://github.com/bazelbuild/rules_python
git reset 0e600586aea596a488902ce90938b36ce7e9f6d5  --hard
export USE_BAZEL_VERSION=1d022f403d26505d6edda73a50e08da53109dd3b
bazel build --noenable_bzlmode --enable_workspace  -- ... 

CC Greenteam @meteorcloudy

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