rust-lang / rust-lang/rustup

More useful error message for unsupported platforms

Open
#1,164 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Trying to use rustup on an unsupported platform leaves the user with what looks like a temporary failure:

curl https://sh.rustup.rs -sSf | sh
info: downloading installer
curl: (22) The requested URL returned error: 404 Not Found
rustup: command failed: curl -sSfL https://static.rust-lang.org/rustup/dist/arm-unknown-freebsd/rustup-init -o /tmp/tmp.B6K8gOHq/rustup-init

Ideally static.rust-lang should detect that a host triplet was selected that is known but currently not supported and return a status code that rustup understands. Unknown triplets would cause a 404.

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

Start by tracing how rustup handles the installer download failure and how the rustup-init host triplet is selected. Review the interaction with static.rust-lang for known-but-unsupported versus unknown triplets; done means unsupported platforms produce a distinct status that rustup turns into a useful error, while unknown triplets still return 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.