-
Notifications
You must be signed in to change notification settings - Fork 892
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 Listing of Installed Components #1659
Add Listing of Installed Components #1659
Conversation
44fd704
to
59ad164
Compare
59ad164
to
5cf1bb1
Compare
Fixed formatting using |
LGTM, except rather than introduce |
@dwijnand okay, I'll refactor toward that. I put it separately because I felt like I'd have too many if statements nested within the function, but I'll refactor in that direction. EDIT: Done. |
5cf1bb1
to
a0a22b1
Compare
Sorry, @naftulikay. I sent you a PR of what I meant: naftulikay#1. |
e8ce945
to
94f188c
Compare
@dwijnand thank you! I have merged that in, the PR should now reflect this. For the future, it might be beneficial to instead have a call format like:
This would allow better querying, but I don't have an immediate need for this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise
@dwijnand since this is kind of related to #450, at least for my use-case, maybe this merits a broader approach if we're going to creep scope a bit anyway. What I kind of need out of
My "API," so to speak, will be YAML something like this: ---
rust_components:
- rustfmt
- rls
rust_default_toolchain: stable
rust_toolchains:
- stable
- beta
- nightly
rust_targets:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl For the things above, I need to detect what's available, detect what's installed, and perform actions only when things are not already installed and are available. Since obviously this is a much larger piece of work, I'm happy to discuss more in detail, but hopefully my use-case is fairly clear.
How would you like to proceed? Should I just add the changes suggested above to this PR, or should we split/consolidate work on this? I'm happy to contribute code toward this end. |
My gut feeling is that eventually I'd like for rustup to have a plumbing-style interface for the purpose of handling both ansible-like automation and also eventually rls-style JSON like streams. However this is definitely out of scope for now, because we need to undergo a lot of codebase simplification and cleanup before we're ready to add that kind of complex API. If you're interested in helping to define what such an API might look like then I would welcome you working with us to that end. In the meantime, we need to have the bare minimum of additional API to make things possible for you to continue. |
This feature adds the ability to only list installed components rather than all available components.
94f188c
to
8f58bb0
Compare
@naftulikay From my PoV the best place to have that discussion will begin on the Discord for Rustup which you can find here: https://discord.gg/cKdYFVz We are also trying to have weekly meetings around 20:30 UTC on Tuesdays but we'll be kinda busy in them for the next little while :D |
@kinnison I have joined the Discord, can someone grant me access into the #wg-rustup channel? Please let me know if any changes are required for merge. |
@naftulikay If you check your discord DMs, Dyno should have told you what you need to do in order to gain the ability to talk in channels. |
This feature adds the ability to only list installed components rather than all available components.
My use-case is described in #1658; I'm writing automation around
rustup
and I need to be able to view only installed components so I can selectively install them.Closes #1658.