Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Use the --component option in setup scripts#104

Merged
khyperia merged 1 commit intoEmbarkStudios:mainfrom
DJMcNab:use-components
Oct 22, 2020
Merged

Use the --component option in setup scripts#104
khyperia merged 1 commit intoEmbarkStudios:mainfrom
DJMcNab:use-components

Conversation

@DJMcNab
Copy link
Copy Markdown
Contributor

@DJMcNab DJMcNab commented Oct 22, 2020

This should mean that if one of the required components is broken on a given nightly, rustup will try going backwards until it finds one which works.

This also makes it clear that the components are being installed for the nightly toolchain, such as if someone blindly copies the setup script, it will work even if they don't have nightly as their current toolchain (such as if they are not in the

I have tested this works both when no nightly toolchain is installed and when a nightly toolchain is already installed (the components appear in rustup component list --toolchain nightly. Additionally, rustc, cargo and rustfmt etc. installed as normal.

This should mean that if one of the required components is broken on a
given nightly, rustup will try going backwards until it finds one which
works.
@khyperia khyperia merged commit 0793098 into EmbarkStudios:main Oct 22, 2020
@DJMcNab DJMcNab deleted the use-components branch October 22, 2020 19:22
repi pushed a commit that referenced this pull request Oct 23, 2020
This should mean that if one of the required components is broken on a
given nightly, rustup will try going backwards until it finds one which
works.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants