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

fix CI "build wheels" step for rustup no longer installing default toolchain #22037

Merged
merged 3 commits into from
Mar 4, 2025

Conversation

tdyas
Copy link
Contributor

@tdyas tdyas commented Mar 3, 2025

Fix the "Build wheels" step for a breaking change in Rustup v1.28.0 which no longer installs a default toolchain any more.

Use rustup default to install the applicable toolchain because it is idempotent and will install the toolchain if it is not already installed. rustup toolchain install by design will try to install even if the toolchain is already installed. See rust-lang/rustup#710 for discussion of this distinction.

Closes #22036

@tdyas tdyas added category:internal CI, fixes for not-yet-released features, etc. release-notes:not-required PR doesn't require mention in release notes labels Mar 3, 2025
@tdyas tdyas changed the title fix build wheels step for rustup 1.28.0 not installing toolchain any more [WIP] fix build wheels step for rustup 1.28.0 not installing toolchain any more Mar 3, 2025
@tdyas tdyas changed the title [WIP] fix build wheels step for rustup 1.28.0 not installing toolchain any more fix CI "build wheels" step for rustup no longer installing default toolchain Mar 4, 2025
@tdyas tdyas marked this pull request as ready for review March 4, 2025 04:08
@tdyas tdyas requested review from huonw and sureshjoshi March 4, 2025 04:08
Copy link
Contributor

@huonw huonw left a comment

Choose a reason for hiding this comment

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

Thanks for working through this.

@tdyas tdyas merged commit ca5f297 into pantsbuild:main Mar 4, 2025
24 checks passed
@WorkerPants
Copy link
Member

I tried to automatically cherry-pick this change back to each relevant milestone, so that it is available in those older releases of Pants.

✔️ 2.24.x

Successfully opened #22039.

✔️ 2.25.x

Successfully opened #22038.


Thanks again for your contributions!

🤖 Beep Boop here's my run link

tdyas added a commit that referenced this pull request Mar 4, 2025
…olchain (Cherry-pick of #22037) (#22038)

Fix the "Build wheels" step for a breaking change in [Rustup
v1.28.0](https://blog.rust-lang.org/2025/03/02/Rustup-1.28.0.html) which
no longer installs a default toolchain any more.

Use `rustup default` to install the applicable toolchain because it is
idempotent and will install the toolchain if it is not already
installed. `rustup toolchain install` by design will try to install even
if the toolchain is already installed. See
rust-lang/rustup#710 for discussion of this
distinction.

Closes #22036

---------

Co-authored-by: Tom Dyas <[email protected]>
tdyas added a commit that referenced this pull request Mar 4, 2025
…olchain (Cherry-pick of #22037) (#22039)

Fix the "Build wheels" step for a breaking change in [Rustup
v1.28.0](https://blog.rust-lang.org/2025/03/02/Rustup-1.28.0.html) which
no longer installs a default toolchain any more.

Use `rustup default` to install the applicable toolchain because it is
idempotent and will install the toolchain if it is not already
installed. `rustup toolchain install` by design will try to install even
if the toolchain is already installed. See
rust-lang/rustup#710 for discussion of this
distinction.

Closes #22036

---------

Co-authored-by: Tom Dyas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc. release-notes:not-required PR doesn't require mention in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Build wheels" jobs failing on Linux GitHub runners
3 participants