Skip to content

Uninstalling rustup deletes cargo-dist installed packages #1353

@epage

Description

@epage

Steps

$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$ apt-get update && apt-get install -y curl
$ curl -LsSf https://astral.sh/uv/install.sh | sh
$ source $HOME/.cargo/env
$ uvx posting  # works
$ rustup self uninstall
$ uvx posting  # fails

note: I've not run this but am basing it off of cargo-dist's generated install.sh and from rustup's source code: https://github.com/rust-lang/rustup/blob/c91692a1bdbd91663dbc5fbb1f1bdd684e711f1c/src/cli/self_update.rs#L908-L925

This is a fully reasonable set of steps. A user could experiment with rust and decide to stop but want to keep using their Python tooling that happens to be implemented in Rust.

Also, if I were making a product, I wouldn't want the implementation's language to be a part of our compatibility story

As a Cargo team member, I'm concerned about people mucking with Cargo's internals

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions