rust-lang / rust-lang/rustup

Always re-generate proxy wrappers on `rustup self update`

Open
#3,100 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Problem you are trying to solve

There are some situations where the proxy wrappers rustup generates are being overwritten -- for example, when someone works on Miri and does ./miri install. It'd be nice to have an easy way to ask rustup to re-generate these proxies.

Right now, the best advice we can give is to run rustup update, which of course as a side-effect will also update all the toolchains.

Solution you'd like

Maybe rustup self update could be changed to always re-generate the proxies, even when there is no new rustup available.

Notes

Cc https://github.com/rust-lang/miri/issues/2633

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 self update command and trace how proxy wrappers are generated during updates. Confirm the behavior when no new rustup is available, then ensure the command regenerates proxies without updating toolchains; the Miri scenario in the issue provides the motivating case.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.