Skip to content
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

Don’t leave rustup.sh behind or install an unused toolchain #22

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

SimonSapin
Copy link
Contributor

  • This script would let rustup default to installing a stable toolchain, then install a different one if needed. Instead it now tells the bootstrap script which toolchain to install in the first place

  • Piping curl to sh avoids leaving a rustup.sh file behind. This could disturb some tools, for example cargo publish fails with:

to proceed despite this and include the uncommitted changes, pass the --allow-dirty flag

@SimonSapin SimonSapin requested a review from a team as a code owner December 4, 2023 11:44
@SimonSapin
Copy link
Contributor Author

Please note: this PR was made in GitHub’s web editor and is completely untested!

@EricRibeiro
Copy link
Contributor

Hey @SimonSapin, thanks for the help!

Before I look at your PR, I'll work on migrating this orb to Orb Tools 12. It should not take long.

* This script would let rustup default to installing a `stable` toolchain, then install a different one if needed. Instead it now tells the bootstrap script which toolchain to install in the first place

* Piping `curl` to `sh` avoids leaving a `rustup.sh` file behind. This could disturb some tools, for example `cargo publish` fails with:

> to proceed despite this and include the uncommitted changes, pass the `--allow-dirty` flag
Copy link
Contributor

@EricRibeiro EricRibeiro left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution 🙏

@EricRibeiro EricRibeiro merged commit 3aada97 into CircleCI-Public:main Dec 7, 2023
2 checks passed
@orb-publisher
Copy link

Your orb has been published to the CircleCI Orb Registry.
You can view your published orb on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/circleci/rust?version=1.6.1

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.

3 participants