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

[Modify] rust-static: 更新toml 里的url指向本地 #32

Closed
crlf0710 opened this issue Apr 24, 2016 · 7 comments
Closed

[Modify] rust-static: 更新toml 里的url指向本地 #32

crlf0710 opened this issue Apr 24, 2016 · 7 comments

Comments

@crlf0710
Copy link

hi, 经过配置rustup 更新rust时会从科大镜像上下载
https://mirrors.ustc.edu.cn/rust-static/channel-rust-*.toml.sha256
https://mirrors.ustc.edu.cn/rust-static/channel-rust-*.toml
并且根据里面的url从原始地址下载
可以修改相应的文件使他们从科大镜像下载么?谢谢!

@gaoyifan gaoyifan changed the title rust-static: 更新toml 里的url指向本地 [Modify] rust-static: 更新toml 里的url指向本地 Apr 24, 2016
@gaoyifan
Copy link
Member

请参考wiki 中“更新”一节:

更新时可以指定环境变量 RUSTUP_DIST_ROOT 从镜像下载,例如 export RUSTUP_DIST_ROOT=https://mirrors.ustc.edu.cn/rust-static 使用中科大镜像

@crlf0710
Copy link
Author

Hi,请看下描述,我说的就是设置了RUSTUP_DIST_ROOT之后的情况。

@zhsj
Copy link
Contributor

zhsj commented Apr 26, 2016

Does anyone know about rustup?

@zhsj zhsj reopened this Apr 26, 2016
@zhsj zhsj added enhancement and removed wontfix labels Apr 26, 2016
@gaoyifan
Copy link
Member

这里似乎遇到了同样的问题

@zhsj
Copy link
Contributor

zhsj commented May 6, 2016

Maybe we need upstream to fix.

@knight42
Copy link
Member

knight42 commented Jun 8, 2016

给他们提了个 PR.

另外现在 http://mirrors.ustc.edu.cn/rust-static 改为对 http://static.rust-lang.org 的反代

@knight42
Copy link
Member

上游已经 merge 了。以后可以通过设置环境变量 RUSTUP_DIST_SERVER 为 https://mirrors.ustc.edu.cn/rust-static 来使用我们的反代

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

No branches or pull requests

4 participants