-
Notifications
You must be signed in to change notification settings - Fork 13.3k
use xz files for stage0 download if on system with xz #65757
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I did a quick check and the boostrap script uses |
I created a PR to use |
does this work depending on wether it's either
or |
that's right. because python 2 doesn't have xz support in its tarball library, see the link above. we could import other libraries but that would require extra dependencies. |
download .tar.xz if python3 is used fixes rust-lang#65757
download .tar.xz if python3 is used fixes rust-lang#65757
I noticed that if
./x.py
is run from a git checkout, the build script downloads the rust-std and rustc, and cargo stage0 archives from static.rust-lang.org in the tar.gz format. Those are a lot bigger in size than the also delivered tar.xz files, usually adds some 30% in download time and consumed bandwith. Do you think you could possibly change the script to usetar.xz
in the future?here's a snipet from my log:
The text was updated successfully, but these errors were encountered: