build: configure secondary mirror fallback#3814
Conversation
Currently, transient GitHub network issues can cause builds to fail when pulling platforms. To fix, configure Bazel's downloader to try GitHub first and fall back to mirror.bazel.build.
There was a problem hiding this comment.
Code Review
This pull request configures an experimental downloader configuration in .bazelrc and adds rewrite rules in downloader_config.cfg to handle fallbacks for Bazel platforms. The review feedback correctly points out that the regular expressions used for rewriting URLs are unanchored and contain unescaped dots, which could lead to unexpected matching behavior, and provides a robust alternative.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
f5b088f to
42a9b9f
Compare
42a9b9f to
2a21ddc
Compare
dougthor42
left a comment
There was a problem hiding this comment.
FTR, we resolved this by using BuildBarn remote asset and a bazelisk wrapper that installs it for users. LMK if you'd like to know more.
Question: These configs do not apply to non-root bazel modules, correct? Meaning this will have no impact on any consumers of rules_python?
Hm, interesting, yeah i'd like to learn more. I'll send you a chat.
Correct |
Currently, transient GitHub network issues can cause builds to fail
when pulling e.g. platforms.
To fix, configure Bazel's downloader to try GitHub first and fall back
to mirror.bazel.build.