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

Check for stray hash when installing a toolchain #1801

Merged
merged 3 commits into from
Apr 29, 2019
Merged

Check for stray hash when installing a toolchain #1801

merged 3 commits into from
Apr 29, 2019

Conversation

Glamhoth
Copy link
Contributor

#1777
As @kinnison explained - problem is in update-hash that is still present after manual removal of a toolchain. This resulted in the inability to install it again. To fix this problem we now check if there is a stray hash, and delete if so. This is WIP as a test must be written.

@kinnison
Copy link
Contributor

Hi @Glamhoth

We do indeed need to try and organise a test now, because without a suitable test we be able to protect against this kind of thing causing a problem elsewhere in the future.

Do you think you're able to work out where to fit one in?

@Glamhoth
Copy link
Contributor Author

Glamhoth commented Apr 25, 2019

Sure, I'll try to write it today.

Copy link
Contributor

@kinnison kinnison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty good over-all, thank you.

It'd be nice to make the test a little less brittle though -- see my comments.

@Glamhoth
Copy link
Contributor Author

I cleaned up the test.

@Glamhoth Glamhoth changed the title WIP: Check for stray hash when installing a toolchain Check for stray hash when installing a toolchain Apr 29, 2019
Copy link
Contributor

@kinnison kinnison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @Glamhoth

@kinnison kinnison merged commit 51b3d05 into rust-lang:master Apr 29, 2019
@Glamhoth Glamhoth deleted the cleanup_stray_hash branch April 29, 2019 09:59
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.

2 participants