Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use rules_license on the envoy project ? #136

Open
aallrd opened this issue Dec 21, 2023 · 1 comment
Open

How to use rules_license on the envoy project ? #136

aallrd opened this issue Dec 21, 2023 · 1 comment
Labels
P3 question Further information is requested

Comments

@aallrd
Copy link

aallrd commented Dec 21, 2023

Hello,

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

It seems rules_license would help me in this task, but I don't understand how to use it (I am new to bazel), do you have an example ?

Regarding my envoy specific use case, it seems all the required information is available to bazel: 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
@aiuto aiuto added question Further information is requested P3 labels Mar 20, 2024
@phlax
Copy link

phlax commented Oct 29, 2024

@aallrd envoy has a bazel target that produces a json representation of the dependencies including license info

bazel build //bazel:all_repository_locations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants