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

Add ToolchainComponentsMissing error msg #2709

Merged
merged 1 commit into from
Apr 29, 2021

Conversation

Rustin170506
Copy link
Member

close #2705

@Rustin170506
Copy link
Member Author

I want to add tests, but it seems there is a new update_from_dist in dist tests, I don't know how to mock test dist:: update_from_dist , do you have any suggestions?

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.

I'd suggest trying to test this more as an integration test like those in cli-misc or cli-v2.

There are setup options for those which provide a channel which is missing (for example) RLS. the default profile wants the RLS component, so it should be possible to put together a test which triggers this pathway.

src/errors.rs Outdated Show resolved Hide resolved
src/errors.rs Outdated Show resolved Hide resolved
src/errors.rs Outdated Show resolved Hide resolved
@Rustin170506 Rustin170506 marked this pull request as draft April 13, 2021 01:31
@Rustin170506 Rustin170506 marked this pull request as ready for review April 13, 2021 03:10
@Rustin170506
Copy link
Member Author

@kinnison Added test.

@Rustin170506
Copy link
Member Author

@kinnison ping~

Ready for review.

@kinnison kinnison merged commit 055b2f3 into rust-lang:master Apr 29, 2021
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.

installing nightly with missing components suggests doing 'rustup component remove'
2 participants