Skip to content

Rustup 1.28.2 uses a different profile to install rust-toolchain.toml files #4337

Open
@jonasbb

Description

@jonasbb

Verification

Problem

The behavior of rustup toolchain install on GitHub Actions started to change after the last runner image update (2025-05-12). It contains the newest rustup 1.28.2. It now uses the minimal profile instead of the default profile. This results in many components being no longer installed compared to rustup 1.28.1.

 info: syncing channel updates for '1.86.0-x86_64-pc-windows-msvc'
 info: latest update on 2025-04-03, rust version 1.86.0 (05f9846f8 2025-03-31)
 info: downloading component 'cargo'
-info: downloading component 'clippy'
-info: downloading component 'rust-docs'
 info: downloading component 'rust-std'
 info: downloading component 'rustc'
-info: downloading component 'rustfmt'
 info: installing component 'cargo'
-info: installing component 'clippy'
-info: installing component 'rust-docs'
 info: installing component 'rust-std'
 info: installing component 'rustc'
-info: installing component 'rustfmt'

I could find this PR mentioning the same issue. actions/runner-images#12214
It points out that the change stems from f439f48.

I do not find anything related to this change in the rustup Changelog. Since this results in a quite obvious behavior change (namely tools like clippy being no longer installed) this should have been called out.

Steps

  1. Create a rust-toolchain.toml file with this content.

    [toolchain]
    channel    = "1.86.0"
    components = ["cargo"]
  2. Run rustup show active-toolchain || rustup toolchain install in GitHub Actions and observe which components are being installed.

Possible Solution(s)

This is a behavior change that should have been called out in the changelog.

Notes

I was originally informed about this via this bug report: actions-rust-lang/setup-rust-toolchain#60
The only obvious change between the working CI run (https://github.com/elastio/bon/actions/runs/14971709746/job/42053977014) and the failed CI run (https://github.com/elastio/bon/actions/runs/14996090362/job/42130576522) was the different rustup version and that fewer components are installed.

Rustup version

rustup 1.28.2 (e4f3ad6f8 2025-04-28)

Installed toolchains

Not available, since the error occurred in a CI run.

OS version

Windows

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions