-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Add --module_mirrors
#26832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --module_mirrors
#26832
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.
|
You can test this with |
|
@bazel-io fork 8.4.0 |
meteorcloudy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
|
I pushed an update to the flag docs |
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
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
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]>
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.