`rustup self uninstall --no-modify-path` is leaving dangling source line in rc files
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 58/100
Direção de pesquisa
Start by tracing the Unix uninstall path for rustup self uninstall --no-modify-path and how it handles the CARGO_HOME/env script and shell rc entries. Reproduce the reported warning after uninstalling with that option, then check whether keeping the env script resolves it without changing default uninstall behavior. Done means the rc file no longer sources a missing script.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Verification
- I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue and found no duplicates.
- I am on the latest version of Rustup according to https://github.com/rust-lang/rustup/tags and am still able to reproduce my issue.
Problem
Due to our current uninstallation policy, by default, we're adding a line in user's rc file for sourcing a env script implement the auto PATH adding upon normal installation with modify path.
However, the current uninstallatio by default removes all of the files in CARGO_HOME and RUSTUP_HOME, causing uninstallation with rustup self uninstall --no-modify-path leaving behind a source cmd for sourcing nothing.
Steps
- Install rustup with modify path on any Unix os.
- Uninstall rustup with
rustup self uninstall --no-modify-path.
If you're using bash/zsh/ash, this would immediately causing a warn like this:
source:xxx: no such file or directory: cargo_home/env
Possible Solution(s)
Keep the env script upon rustup self uninstall --no-modify-path.
Notes
No response
Rustup version
rustup 1.29.3 (2026-11-11)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: the currently active `rustc` version is `rustc 1.100.0 (0ef1bc386 2026-11-09)`
Installed toolchains
Not related.
OS version
Any Unix OS.
- Linguagem predominante
- Rust
- Estrelas
- 7.1k
- Forks
- 1.1k
- Merge médio
- 16h 36min
- PRs com merge (30d)
- 54
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de rust-lang/rustup
-
Upgrade Windows SDK to 28000Abertaenhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
rust-lang/rustup#5172 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
enhancement O-shell
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
RustUp-init and better arm64 support for Windows.Talvez já em andamento @crutkas assumiu há 1 dia. Abertaenhancement
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 66/100
Mantenedores costumam responder em até 1 dia
Todas as issues de rust-lang/rustup
Issues semelhantes
-
Thai project names become 'project', 'project-2'… (slug keeps ASCII only)Talvez já em andamento @mastel2 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
storytold/craft-anything#2538 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
compiler-explorer/compiler-explorer#9738 ·
Mantenedores costumam responder em até 2 dias
-
area: runtime enhancement good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
hffgzktbcc-blip/ounce-core#663 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
zellij-org/zellij#6026 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
tamatebako/tebako#1155 ·
Mantenedores costumam responder em até 1 dia