Closed
Conversation
The new flag allows users to specify additional mirrors for Bazel registry source URLs, taking precedence over those specified by registries. This provides a way to add mirrors without changing `bazel_registry.json`, the hash of which is stored in lockfiles.
Collaborator
Author
|
You can test this with |
Collaborator
Author
|
@bazel-io fork 8.4.0 |
Collaborator
Author
|
I pushed an update to the flag docs |
Wyverald
reviewed
Aug 26, 2025
src/test/java/com/google/devtools/build/lib/analysis/util/AnalysisTestCase.java
Outdated
Show resolved
Hide resolved
src/test/java/com/google/devtools/build/lib/analysis/util/AnalysisTestCase.java
Outdated
Show resolved
Hide resolved
src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java
Outdated
Show resolved
Hide resolved
src/test/java/com/google/devtools/build/lib/query2/testutil/SkyframeQueryHelper.java
Outdated
Show resolved
Hide resolved
Wyverald
approved these changes
Aug 27, 2025
bazel-io
pushed a commit
to bazel-io/bazel
that referenced
this pull request
Aug 28, 2025
The new flag allows users to specify additional mirrors for Bazel registry source URLs, taking precedence over those specified by registries. This provides a way to add mirrors without changing `bazel_registry.json`, the hash of which is stored in lockfiles. RELNOTES: The new `--module_mirrors` flag accepts a comma-separated list of mirrors to use for source URLs provided by modules obtained from Bazel registries. Closes bazelbuild#26832. PiperOrigin-RevId: 800384242 Change-Id: I3b56eb5fe0405f460568d7563b2ad93f6b7461a5
github-merge-queue bot
pushed a commit
that referenced
this pull request
Aug 29, 2025
The new flag allows users to specify additional mirrors for Bazel registry source URLs, taking precedence over those specified by registries. This provides a way to add mirrors without changing `bazel_registry.json`, the hash of which is stored in lockfiles. RELNOTES: The new `--module_mirrors` flag accepts a comma-separated list of mirrors to use for source URLs provided by modules obtained from Bazel registries. Closes #26832. PiperOrigin-RevId: 800384242 Change-Id: I3b56eb5fe0405f460568d7563b2ad93f6b7461a5 Commit c3889fc --------- Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im> Co-authored-by: iancha1992 <heec@google.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The new flag allows users to specify additional mirrors for Bazel registry source URLs, taking precedence over those specified by registries. This provides a way to add mirrors without changing
bazel_registry.json, the hash of which is stored in lockfiles.RELNOTES: The new
--module_mirrorsflag accepts a comma-separated list of mirrors to use for source URLs provided by modules obtained from Bazel registries.