-
Notifications
You must be signed in to change notification settings - Fork 402
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
tools fetched from upstream rust static repo even when override URL template is provided #867
Comments
This sounds very reasonable - if people really want the current behaviour, it's easy for them to re-add the default value. Can I tempt you to put together a PR? Thanks! |
You can. I am working on making sure I have appropriate permission from my company. We already have a corp CLA with you. |
wt
pushed a commit
to wt/rules_rust
that referenced
this issue
Aug 3, 2021
Previously, the default url template for downloading toolchains was always present as the first place to download tools from. This prevents overriding the default location for the tools so that an internal mirror can be used. Fixes bazelbuild#867
Permission granted. :) |
wt
pushed a commit
to wt/rules_rust
that referenced
this issue
Aug 3, 2021
Previously, the default url template for downloading toolchains was always present as the first place to download tools from. This prevents overriding the default location for the tools so that an internal mirror can be used. Fixes bazelbuild#867
illicitonion
pushed a commit
that referenced
this issue
Aug 3, 2021
Previously, the default url template for downloading toolchains was always present as the first place to download tools from. This prevents overriding the default location for the tools so that an internal mirror can be used. Fixes #867
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My WORKSPACE for the rules_rust looks like this:
When running a build, it still fetches from the default rust upstream location (i.e. "https://static.rust-lang.org/..."). This happens because the urls provided in my workspace config are just appended to a list whose first entry is always the default site. See https://github.com/bazelbuild/rules_rust/blob/main/rust/private/repository_utils.bzl#L529-L535 for the relevant code.
I think that the code should only add the default location iff urls are not specified.
The text was updated successfully, but these errors were encountered: