Skip to content
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

STATIC_RUST_URL sets the static.rust-lang.org URL #143

Merged
merged 2 commits into from
Nov 9, 2018

Conversation

damienmg
Copy link
Collaborator

This change add the STATIC_RUST_URL environment variable to overwrite
the URL to https://static.rust-lang.org when downloading the rust
toolchain. This let the user specify using --action_env a mirror of
static.rust-lang.org instead.

This is particularly useful in China where https://static.rust-lang.org
is really slow. For chinese user, the best way to proceed after this
change is to add the following line in your ~/.bazelrc:

build --action_env STATIC_RUST_URL=http://mirrors.ustc.edu.cn/rust-static

This change add the STATIC_RUST_URL environment variable to overwrite
the URL to https://static.rust-lang.org when downloading the rust
toolchain. This let the user specify using --action_env a mirror of
static.rust-lang.org instead.

This is particularly useful in China where https://static.rust-lang.org
is really slow. For chinese user, the best way to proceed after this
change is to add the following line in your ~/.bazelrc:

```
build --action_env STATIC_RUST_URL=http://mirrors.ustc.edu.cn/rust-static
```
rust/repositories.bzl Show resolved Hide resolved
@damienmg
Copy link
Collaborator Author

damienmg commented Nov 9, 2018

@acmcarther: is there anything missing for this PR?

@acmcarther acmcarther merged commit 9a3de26 into bazelbuild:master Nov 9, 2018
@acmcarther
Copy link
Collaborator

Ah, sorry, no this looks good to me

@damienmg damienmg deleted the rust-static-proxy branch November 10, 2018 19:09
@damienmg
Copy link
Collaborator Author

damienmg commented Nov 14, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants