rust-lang / rust-lang/rustup

Downgrade nightly when adding component

Open
#2,146 4 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

E-mentor enhancement help wanted
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

Describe the problem you are trying to solve

I have a nightly installed and want to add a component that is not available for this or any newer nightly.

Describe the solution you'd like

With https://github.com/rust-lang/rustup/pull/2126 we have rustup toolchain install --allow-downgrade; this issue would be solved by adding the parallel rustup component add --allow-downgrade.

Notes

Currently available work-around: rustup toolchain install $already_installed_channel --allow-downgrade -c added_component_name

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 at the rustup component add command entry point and compare its toolchain selection with rustup toolchain install --allow-downgrade. The work is done when rustup component add --allow-downgrade permits adding a component from an older available nightly, while preserving the documented workaround behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.