brson/multirust

Multirust defaults to a super slow server when downloading

SirVer opened this issue · 5 comments

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 commented

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

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

brson commented

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

@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 commented

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