-
Notifications
You must be signed in to change notification settings - Fork 6
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
Rustup backend does not detect missing components #58
Comments
I don't really want to make it a hacky method again like it was in trait Backend {
fn missing(managed: Self::InstallOptions, installed: Option<Self::QueryInfo>) -> Option<Self::InstallOptions>;
} |
Also I don't like the managed variable name as it's a bit vague, perhaps we could rename it to |
Yeah, this sounds good, and I was also thinking of "let the backend decide how to install things" |
I've nearly fixed this, but I discovered another bug with the approach, the All of this makes me feel as if instead of shoe-horning rustup into working with I think if rustup packages are to be automated, that is best done by a bespoke tool and not a generic one like |
Basically the title. I came across this on a fresh arch install when I noticed the rust-analyzer was missing. Now, the way we handle missing packages is just by checking the keys, which does not suffice for Rustup (since the components are stored in InstallOptions and that is discarded).
One way to deal with this would be to convert them into an enum of components and toolchains, but I'm not sure how much of a 'hack' it'll be.
The text was updated successfully, but these errors were encountered: