-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Allow multiple toolchains to be requested in uv toolchain install
#4334
Conversation
7d30506
to
ab7d5ae
Compare
35a2730
to
31a937a
Compare
7b18221
to
677b392
Compare
31a937a
to
717799e
Compare
278c5c0
to
af9eeb1
Compare
if targets.is_empty() { | ||
writeln!( | ||
printer.stderr(), | ||
"A toolchain is already installed. Use `uv toolchain install <request>` to install a specific toolchain.", |
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.
I think the idea here is that if this message is printed, then I think it's guaranteed that some other "Found installed toolchain ..." message is printed above it, right?
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.
Also, should this say, "all requested toolchains are already installed"? Instead of just saying only a single toolchain is already installed?
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.
Yeah that's the idea. The output is actually pretty reasonable with both messages, one is listing discovered toolchains and the other summarizes the result of the whole operation.
We only say this when the targets are empty, which means we're looking for any managed toolchain. This is a special case added in #4248
af9eeb1
to
25427db
Compare
Allows installation of multiple toolchains in a single invocation because I don't want to be limited to one! Most of the implementation for concurrent downloads ported from
cargo dev fetch-python
.