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

Multirust defaults to a super slow server when downloading #93

Open
SirVer opened this issue Aug 18, 2015 · 5 comments
Open

Multirust defaults to a super slow server when downloading #93

SirVer opened this issue Aug 18, 2015 · 5 comments

Comments

@SirVer
Copy link

SirVer commented Aug 18, 2015

When running multirust update the other day, it was downloading from here:

http://static-rust-lang-org.s3-website-us-west-1.amazonaws.com/dist/2015-08-16/rust-nightly-x86_64-apple-darwin.tar.gz

which took ~30 minutes.

If I download from here:

https://static.rust-lang.org/dist/2015-08-16/rust-nightly-x86_64-apple-darwin.tar.gz

the download finishes in ~30s. I am in Europe.

Why is multirust defaulting to us-west?

@brson
Copy link
Owner

brson commented Aug 19, 2015

multirust goes directly to s3, bypassing the cdn, when gpg is available because we have problems with the cdn becoming out of sync.

@SirVer
Copy link
Author

SirVer commented Aug 19, 2015

How can I skip gpg checks then? 30 minutes is just way too long.

@brson
Copy link
Owner

brson commented Aug 19, 2015

Defeat this check to avoid downgrading to s3. Probably setting RUSTUP_DIST_SERVER=https://static.rust-lang.org/ (with the trailing slash) will work.

@SirVer
Copy link
Author

SirVer commented Aug 20, 2015

@brson Thanks, this worked:

RUSTUP_DIST_SERVER=https://static.rust-lang.org  multirust update

With the trailing slash it did not work:

rustup: couldn't download checksum file 'https://static.rust-lang.org//dist/channel-rust-nightly.sha256'

@brson
Copy link
Owner

brson commented Sep 17, 2015

Here's how I want to solve this: use the CDN, but when a checksum failure occurs and gpg is available, try s3.

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

2 participants