bazelbuild/bazel

query "@bazel_tools/..." fails

Open

#19.668 aperta il 28 set 2023

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Java (4465 fork)batch import
P2help wantedteam-ExternalDepstype: bug

Metriche repository

Star
 (25.384 star)
Metriche merge PR
 (Merge medio 22g 20h) (77 PR mergiate in 30 g)

Descrizione

Description of the bug:

bazel query "@bazel_tools//tools/..." works fine and lists a number of labels

However:

$ bazel query  "@bazel_tools//..."
ERROR: error loading package under directory '': error loading package '@bazel_tools//src/main/protobuf': Unable to find package for @com_google_protobuf//:protobuf.bzl: The repository '@com_google_protobuf' could not be resolved: Repository '@com_google_protobuf' is not defined.\

Which category does this issue belong to?

No response

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

set up any simple workspace and run bazel query "@bazel_tools/..."

Which operating system are you running Bazel on?

Debian GNU/Linux rodete

What is the output of bazel info release?

release 6.3.2

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

No response

Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

Guida contributor