0

For instance take "com_google_protobuf" defined by https://github.com/protocolbuffers/protobuf.

It should show some list like

:timestamp

:duration

.

.

.

You can get a list of these if a package in your own repository already depends on a rule from an external package.

With

bazel query 'deps(//path/to/rule)'
Keiros
  • 69
  • 1
  • 9

1 Answers1

4

You can query using the workspace name, eg:

bazel query --output label '@com_google_protobuf//...'

Which would list all the labels in the external repository named com_google_protobuf.

If you explicitly want packages, then use --output package

Matt Mackay
  • 1,289
  • 1
  • 9
  • 11