List all external dependencies of a bazel target: name, version, license(s)

49 views Asked by At

I have to list all the external dependencies of a bazel built project (envoy), with their name, version and license(s).

I am looking for an output in any format that would list this information for each dependency embedded in the final binary (no tests requirements).

Looking at the envoy repo, it seems all this information is available to the build system: envoy/bazel/repository_locations.bzl

I have a bazel build command used to produce an envoy static binary with many 'filters' and 'options':

bazel \
  build \
  --define google_grpc=disabled  \
  --@envoy//bazel:http3=False     \
  --@envoy//source/extensions/wasm_runtime/v8:enabled=false \
  [...]
  @envoy//source/exe:envoy-static

I have tried to play with the query command of bazel but I am not able to get what I want using it.

Is there a way to get the output I need ?

0

There are 0 answers