Skip to content

update-deps.py: Allow bazel_dep + archive/git_override#5876

Merged
npaun merged 2 commits intomainfrom
npaun/bazel-dep-with-override
Jan 20, 2026
Merged

update-deps.py: Allow bazel_dep + archive/git_override#5876
npaun merged 2 commits intomainfrom
npaun/bazel-dep-with-override

Conversation

@npaun
Copy link
Copy Markdown
Member

@npaun npaun commented Jan 13, 2026

This PR adds a new flag to our existing dependency types for downloading packages:

  • github_release
  • github_tarball
  • git_clone

If use_bazel_dep: true is set, we generate a bazel_dep() + an override directive (e.g. archive_override() or git_override(). Otherwise, we use the existing templates for a WORKSPACE based repo.

Additionally use_module_bazel_from_bcr: some.version.here can be used to automatically download an inject a MODULE.bazel file from BCR if one is available from there, but not in the project itself.

This is basically the last PR in my project of upgrading update-deps.py. There's probably still room for small simplifications / cleanups down the road, but the vast majority of our dependencies are now automated again.

@npaun npaun requested a review from fhanau January 13, 2026 22:14
@npaun npaun requested review from a team as code owners January 13, 2026 22:14
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Jan 13, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing npaun/bazel-dep-with-override (2fadb42) with main (5b193d9)

Summary

✅ 70 untouched benchmarks
⏩ 129 skipped benchmarks1

Footnotes

  1. 129 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@npaun npaun force-pushed the npaun/bazel-dep-with-override branch 2 times, most recently from 59df4a3 to a8a1239 Compare January 15, 2026 03:40
Copy link
Copy Markdown
Contributor

@fhanau fhanau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM otherwise

@npaun npaun force-pushed the npaun/bazel-dep-with-override branch from a8a1239 to d5dea05 Compare January 19, 2026 16:17
@npaun npaun force-pushed the npaun/bazel-dep-with-override branch from d5dea05 to 2fadb42 Compare January 20, 2026 00:15
@npaun npaun merged commit a8a90d4 into main Jan 20, 2026
22 of 23 checks passed
@npaun npaun deleted the npaun/bazel-dep-with-override branch January 20, 2026 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants