Skip to content

rustup self uninstall deletes the entire ~/.cargo folder #702

@oconnor663

Description

@oconnor663

If I install rustup with the standard flow from https://rustup.rs/, and then uninstall it with rustup self uninstall, my entire ~/.cargo directory gets deleted. This happens even if I have a lot of binaries in there installed by my system's version of Cargo, from before I started using rustup. Is that intended? I think rustup should uninstall the shims that it put in ~/.cargo/bin, but not assume it owns the entire directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions