Skip to content

Conversation

@cachebag
Copy link
Contributor

@cachebag cachebag commented Nov 4, 2025

Closes #4442
Revision of #4585

Copy link
Contributor

@djc djc left a comment

Choose a reason for hiding this comment

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

So I'm not sure yet how/where the ToolchainSection::skip_std field makes it into the DistOptions?

@cachebag cachebag marked this pull request as draft November 4, 2025 16:49
@cachebag
Copy link
Contributor Author

cachebag commented Nov 4, 2025

@djc

So I'm not sure yet how/where the ToolchainSection::skip_std field makes it into the DistOptions?

Yeah, sorry about that. I think it should be fine now, the flag flows through the chain where it should be applied as options.skip_std = skip_std before being used to skip the component in try_update_from_dist_().

@cachebag cachebag requested a review from djc November 4, 2025 18:04
@cachebag cachebag marked this pull request as ready for review November 4, 2025 18:13
@djc
Copy link
Contributor

djc commented Nov 11, 2025

(You'll need to rebase and squash before this can be merged.)

@djc djc requested a review from rami3l November 11, 2025 13:22
@cachebag cachebag force-pushed the force-skip-std branch 2 times, most recently from 52b54a3 to 70d2e69 Compare November 11, 2025 13:29
@rami3l rami3l self-assigned this Nov 12, 2025
@rami3l
Copy link
Member

rami3l commented Nov 12, 2025

Thanks a lot for your contribution and sorry for having taken so long to respond, but this seems to have indicated some bigger changes to be done beforehand, made pretty visible by the extra large number of parameters... I'll find some time to have another look.

@rami3l
Copy link
Member

rami3l commented Nov 13, 2025

As I understand it, the original issue #4442 actually describes an inconsistency between rustup toolchain install and rustup target add. Although an extra flag is definitely reasonable to be added, I still think it would be better if the user basically doesn't need to do anything and the installation of rust-std is automatically skipped, because that brings the overall experience of the former closer to the latter which is what we would like to see.

I'm saying this because rustup can trigger toolchain installations in many places, and adding a flag regarding installation is like playing a round of whack-a-mole here.

@cachebag
Copy link
Contributor Author

As I understand it, the original issue #4442 actually describes an inconsistency between rustup toolchain install and rustup target add. Although an extra flag is definitely reasonable to be added, I still think it would be better if the user basically doesn't need to do anything and the installation of rust-std is automatically skipped, because that brings the overall experience of the former closer to the latter which is what we would like to see.

I'm saying this because rustup can trigger toolchain installations in many places, and adding a flag regarding installation is like playing a round of whack-a-mole here.

I did feel awkward writing this patch. So I presume this change actually propagates a bit deeper throughout the codebase than what my stopgap currently does?

Should I just iterate on this PR or would you like me to open a new one?

@rami3l
Copy link
Member

rami3l commented Nov 14, 2025

@cachebag Given the analysis in #4442 (comment) I'm not 100% sure of what to do next, but this PR wouldn't make it there anyway.

As such I'm closing it for now, many thanks all the same!

@rami3l rami3l closed this Nov 14, 2025
@rami3l rami3l removed their assignment Nov 15, 2025
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.

rustup won't force-skip unavailable rust-std for targets specified through rust-toolchain.toml

3 participants