bazelbuild / examples

Examples for Bazel
http://bazel.build
Apache License 2.0
839 stars 514 forks source link

[Bazel CI] No repository visible as '@tools_android' from main repository #488

Open sgowroji opened 2 months ago

sgowroji commented 2 months ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4089#0191a183-34fd-446b-9b58-05338c2b83d4

Platform: MacOS

Logs:

ERROR: Skipping '//app:app': error loading package 'app': Unable to find package for @@[unknown repo 'tools_android' requested from @@]//tools/googleservices:defs.bzl: The repository '@@[unknown repo 'tools_android' requested from @@]' could not be resolved: No repository visible as '@tools_android' from main repository.
(06:21:32) ERROR: error loading package 'app': Unable to find package for @@[unknown repo 'tools_android' requested from @@]//tools/googleservices:defs.bzl: The repository '@@[unknown repo 'tools_android' requested from @@]' could not be resolved: No repository visible as '@tools_android' from main repository.
(06:21:32) INFO: Elapsed time: 3.353s

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

Steps:

 git clone https://github.com/bazelbuild/examples
git reset 4d9f5e6c1332ac902a0798b634c67fda4ec5c43b  --hard
export USE_BAZEL_VERSION=ed8ed01cf3c86485dbd1d756b6e891daad892358
bazel build //app:app 

CC Greenteam @mai93

sgowroji commented 2 months ago

Seeing similar errors in below CI

Maven Java App : https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4089#0191a183-3508-4b6a-bdab-a25523bcc100

Basic Linux LTS : https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4089#0191a183-3517-4e36-a4ae-eabe61cc142d, MacOS LTS, Windows LTS.

All tutorials https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4089#0191a183-351c-4d53-89bd-861c7b3b6864, Java Tutorial, Query quickstart, bzlmod