bazelbuild / bazel-toolchains

Repository that hosts Bazel toolchain configs for remote execution and related support tools.
Apache License 2.0
185 stars 96 forks source link

[Bazel CI] Error:No repository visible as '@bazel_skylib' from main repository. #1008

Closed sgowroji closed 2 months ago

sgowroji commented 2 months ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4089#0191a183-15b2-4fdc-b9e0-6803206e6c08

Platform: Multiple

Logs:


(04:20:47) ERROR: Skipping '...': error loading package under directory '': error loading package 'rules/exec_properties': Unable to find package for @@[unknown repo 'bazel_skylib' requested from @@]//:bzl_library.bzl: The repository '@@[unknown repo 'bazel_skylib' requested from @@]' could not be resolved: No repository visible as '@bazel_skylib' from main repository.
(04:20:47) ERROR: error loading package under directory '': error loading package 'rules/exec_properties': Unable to find package for @@[unknown repo 'bazel_skylib' requested from @@]//:bzl_library.bzl: The repository '@@[unknown repo 'bazel_skylib' requested from @@]' could not be resolved: No repository visible as '@bazel_skylib' from main repository.

Culprit: https://github.com/bazelbuild/bazel/commit/5881c38c54416add9faec35b7731954f4baf12d8

Steps:

 git clone https://github.com/bazelbuild/bazel-toolchains
git reset 6146252bda912a77a25c3b0ebe55ed0d00a1fa4d  --hard
export USE_BAZEL_VERSION=ed8ed01cf3c86485dbd1d756b6e891daad892358
bazel build ... 

CC Greenteam @mai93