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

Prevent need to refetch for v1 manifests #2781

Merged
merged 2 commits into from
May 28, 2021

Conversation

kinnison
Copy link
Contributor

As raised in #2777 rustup is re-syncing (fetching the channel checksum) on each run pre-1.8 when overridden to do so.

This results in (a) slowdown and (b) confusion. This PR fixes that by guessing V1 installs since they're subtly different from v2 installs (ignoring the lack of manifest file which we try and self-heal on v2 installs so couldn't use as the indicator).

This should fix #2777

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
When we're installing a toolchain via the override mechanism
we try and ensure components requested are present.  This is
a no-op on v1 manifest installations but we still end up downloading
and checking the update hash.  This is unnecessary, so this change
attempts to prevent this by detecting a V1 install and skipping
the component check if so.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
@kinnison
Copy link
Contributor Author

@Nemo157 Assuming this goes CI-green could you try this patch?

@Nemo157
Copy link
Member

Nemo157 commented May 23, 2021

Nice, github doesn't let you download artifacts when not logged in, so I can't just download it on my headless server 😭. Will have to build it locally I guess to test.

@Nemo157
Copy link
Member

Nemo157 commented May 23, 2021

Tested and LGTM

@rbtcollins rbtcollins merged commit 7c9e51a into rust-lang:master May 28, 2021
@kinnison kinnison deleted the pre-1.8-refetch branch May 30, 2021 15:05
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

Successfully merging this pull request may close these issues.

For pre 1.8 toolchains rustup claims to sync on each build
3 participants