Skip to content

build: configure secondary mirror fallback#3814

Merged
rickeylev merged 11 commits into
bazel-contrib:mainfrom
rickeylev:configure-bazel-dependency-mirrors
Jun 8, 2026
Merged

build: configure secondary mirror fallback#3814
rickeylev merged 11 commits into
bazel-contrib:mainfrom
rickeylev:configure-bazel-dependency-mirrors

Conversation

@rickeylev

@rickeylev rickeylev commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

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.

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.
@rickeylev rickeylev requested a review from aignas as a code owner June 8, 2026 06:56

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread downloader_config.cfg Outdated
@rickeylev rickeylev force-pushed the configure-bazel-dependency-mirrors branch from f5b088f to 42a9b9f Compare June 8, 2026 07:11
@rickeylev rickeylev force-pushed the configure-bazel-dependency-mirrors branch from 42a9b9f to 2a21ddc Compare June 8, 2026 07:13
@rickeylev rickeylev requested a review from dougthor42 as a code owner June 8, 2026 07:38
@rickeylev rickeylev enabled auto-merge June 8, 2026 15:00

@dougthor42 dougthor42 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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?

@rickeylev rickeylev added this pull request to the merge queue Jun 8, 2026
@rickeylev

Copy link
Copy Markdown
Collaborator Author

use build barn remote asset

Hm, interesting, yeah i'd like to learn more. I'll send you a chat.

only applies to ruleS_python

Correct

Merged via the queue into bazel-contrib:main with commit 8b38325 Jun 8, 2026
5 checks passed
@rickeylev rickeylev deleted the configure-bazel-dependency-mirrors branch June 8, 2026 15:20
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