Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upChange upstream via $RUSTUP_DIST_SERVER #521
Conversation
This comment has been minimized.
This comment has been minimized.
|
Thanks for the PR. This is an important consideration. I'm a little worried about the proliferation of these env vars that modify the download. It seems to me that most people would expect setting |
This comment has been minimized.
This comment has been minimized.
|
I agree we should be using |
This comment has been minimized.
This comment has been minimized.
|
@brson @Diggsey Is it acceptable to change the value of |
This comment has been minimized.
This comment has been minimized.
|
I agree with @brson that this may be one too may be one too many config variables, I'd expect solutions here along the lines of:
|
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton IMO, this is a case that should be handled by What do you think? |
This comment has been minimized.
This comment has been minimized.
|
In my mind the purpose of the manifest is just metadata for the distribution, so it's fine for that to get modified somewhat arbitrarily. (i.e. I'd probably still personally go towards that route) |
This comment has been minimized.
This comment has been minimized.
|
It does make it more difficult to create a mirror though. Couldn't we just avoid the problem by using relative paths in the manifest files? |
This comment has been minimized.
This comment has been minimized.
This is a good point. The manifest already contains It's worth noting that I expect there to eventually be functionality to merge external manifests into the manifest definition, so e.g. @steveklabnik can publish intermezzos bins that work with the normal toolchain. Those manifests would point to resources on a different servo. I consider that use case pretty niche though and don't anticipate problematic interactions with this URL-replacement feature. |
This comment has been minimized.
This comment has been minimized.
Yes. Possibly. I recall that @alexcrichton and I discussed this and made the conscious decision to use full paths, but don't recall why. Using relative paths would have strange interactions with the above feature I mentioned where we might merge two different manifests from two different sources. |
This comment has been minimized.
This comment has been minimized.
|
I wouldn't mind switching to a different variable as the one source of configuration, I largely just wouldn't want to have quite a large myriad of ways to configure rustup. |
knight42
force-pushed the
knight42:change-static-site
branch
from
c8723d5
to
a4aa240
Jun 11, 2016
This comment has been minimized.
This comment has been minimized.
|
I have updated my code, replacing the urls with |
knight42
changed the title
Change upstream via $RUST_STATIC_SITE
Change upstream via $RUSTUP_DIST_SERVER
Jun 11, 2016
This comment has been minimized.
This comment has been minimized.
|
@Diggsey @alexcrichton @brson |
This comment has been minimized.
This comment has been minimized.
|
Any progress? |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the updates @knight42. I'm glad you left the backwards-compatibility code in. Good idea. I'd prefer if the loading of Would you also change the use of I'd still like to see what @Diggsey thinks of this solution since he created the |
This comment has been minimized.
This comment has been minimized.
|
I'm for this: the deviation from |
knight42
added some commits
Jun 12, 2016
knight42
force-pushed the
knight42:change-static-site
branch
from
c8e5a4b
to
98b7286
Jun 15, 2016
knight42
force-pushed the
knight42:change-static-site
branch
from
6ff67a2
to
9763334
Jun 15, 2016
brson
reviewed
Jun 15, 2016
| @@ -93,7 +107,8 @@ impl Cfg { | |||
| gpg_key: gpg_key, | |||
| notify_handler: notify_handler, | |||
| env_override: env_override, | |||
| dist_root_url: dist_root_url, | |||
| dist_root_url: dist_root, | |||
This comment has been minimized.
This comment has been minimized.
brson
Jun 15, 2016
Contributor
This patch looks great now, but is it possible to remove this dist_root_url field completely? Looks like it's mainly used by rustup_dist::dist, so that module can just be changed to append "/dist".
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@brson BTW, AppVeyor is goddamn slow |
This comment has been minimized.
This comment has been minimized.
|
@knight42 Yeah, free accounts have zero parallelism, so the builds have to run sequentially. |
This comment has been minimized.
This comment has been minimized.
|
Could this be merged now? |
brson
merged commit 5009823
into
rust-lang:master
Jun 17, 2016
This comment has been minimized.
This comment has been minimized.
|
Thanks so much @knight42! |
knight42 commentedJun 8, 2016
The downloads from the original https://static.rust-lang.org/ are rather slow in some regions, e.g. China. It is reasonable to enable users to choose other mirror sites.
Besides, I doubt that setting
RUSTUP_DIST_ROOTis able to alter the root URL for downloading Rust toolchains and updates, since the urls written in the manifest files are still something likehttps://static.rust-lang.org/dist/2016-05-24/rust-1.9.0-aarch64-unknown-linux-gnu.tar.gz, which makes no difference.