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

Build Event for external dependencies used in the invocation #23933

Open
sluongng opened this issue Oct 10, 2024 · 1 comment
Open

Build Event for external dependencies used in the invocation #23933

sluongng opened this issue Oct 10, 2024 · 1 comment
Labels
team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. type: feature request untriaged

Comments

@sluongng
Copy link
Contributor

Description of the feature request:

When troubleshooting past invocations, it might be useful to know which dependencies were used in the invocation: information like which version was used, any override was applied, which URL was it downloaded from with what checksum etc...

Which category does this issue belong to?

No response

What underlying problem are you trying to solve with this feature?

By sending a build event with this information, the BES implementation could help developer identify issues a bit more easily. We can also leverage the build events for downstream supply chain security keeping and identify vulnerabilities faster/easier.

Which operating system are you running Bazel on?

No response

What is the output of bazel info release?

No response

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 HEAD ?

No response

Have you found anything relevant by searching the web?

The current Supply Chain Security approach is mostly oriented around using rules_license's aspect to gather the dependencies information. This works but requires additional setup on the code level.

Providing a build event based on bzlmod data would provide a much more sensible default with minimal setup needed. The tradeoff is that you will only get the dependencies information on the invocation level and not on a target level, which is fine for smaller user cases.

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

No response

@fmeum
Copy link
Collaborator

fmeum commented Oct 10, 2024

As a first step, we could announce all Bazel modules and their versions. That's a very manageable and well-defined slice of data. Whether and how individual repos or extension tags should be announced is a more difficult question.

@sgowroji sgowroji added the team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. type: feature request untriaged
Projects
None yet
Development

No branches or pull requests

5 participants