rust-lang / rust-lang/rustup

1.28.0 does not accept components separated by spaces

Open
#4,220 17 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

Verification
Problem

Hello,

At work, we use

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path -y --default-toolchain nightly-2025-02-11 -c cargo rustc rust-src

to install a specific version of rust in our CI environment but since latest version (ie: v1.28.0), it fails with:

$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path -y --default-toolchain nightly-2025-02-11 -c cargo rustc rust-src
info: downloading installer
error: error: unexpected argument 'rustc' found

Usage: rustup-init[EXE] [OPTIONS]

For more information, try '--help'.

After reading https://blog.rust-lang.org/2025/03/02/Rustup-1.28.0.html I understand that some amount of backward incompatible changes have been released (with very short notice) but I don't understand:

  1. Why it impacts my current workflow since I am specifically asking for a toolchain
  2. How to fix it. I am absolutely able to fix my CI configuration, but at the moment, I have no idea how and the error message doesn't provide any kind of help.

Thank you in advance for your help 👍

Steps

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path -y --default-toolchain nightly-2025-02-11 -c cargo rustc rust-src

Possible Solution(s)

No response

Notes

No response

Rustup version
1.28.0
Installed toolchains
nightly-2025-02-11
OS version
Linux

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the documented rustup-init command on Linux with rustup 1.28.0, focusing on the -c cargo rustc rust-src arguments and the unexpected-argument error. Trace the installer’s command-line parsing entry point and existing help behavior; done means the documented space-separated components work again or the command reports a clear, actionable correction.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.