Skip to content

Conversation

@fmeum
Copy link
Collaborator

@fmeum fmeum commented Aug 26, 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.

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.
@fmeum fmeum marked this pull request as ready for review August 26, 2025 14:55
@fmeum fmeum requested review from a team, Wyverald and meteorcloudy as code owners August 26, 2025 14:55
@fmeum fmeum requested review from gregestren and removed request for a team and gregestren August 26, 2025 14:55
@github-actions github-actions bot added team-Configurability platforms, toolchains, cquery, select(), config transitions team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. awaiting-review PR is awaiting review from an assigned reviewer labels Aug 26, 2025
@fmeum
Copy link
Collaborator Author

fmeum commented Aug 26, 2025

You can test this with --module_mirrors=https://bcr-archive-proxy.bcr.workers.dev/ (that endpoint is dev only and may stop working at any time though).

@fmeum
Copy link
Collaborator Author

fmeum commented Aug 26, 2025

@bazel-io fork 8.4.0

Copy link
Member

@meteorcloudy meteorcloudy left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@meteorcloudy meteorcloudy added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Aug 26, 2025
@fmeum
Copy link
Collaborator Author

fmeum commented Aug 26, 2025

I pushed an update to the flag docs

@fmeum fmeum requested a review from Wyverald August 27, 2025 06:25
@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Aug 28, 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 <[email protected]>
Co-authored-by: iancha1992 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Configurability platforms, toolchains, cquery, select(), config transitions team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants