Skip to content

Check for unexpected cargo/rustc before install #681

@brson

Description

@brson

There are already a number of pre-install sanity checks (in do_pre_install_sanity_checks) that there's no existing install. They don't catch every type of rust installation though.

Add another pre install check that iterates over the path looking for cargo and rustc, printing an error if it finds them, but only if they are not in the destination .cargo/bin, and only if the -y (no_prompt) flag is not set. The error should indicate that -y will override the error, like the anti_sudo check.

Metadata

Metadata

Assignees

No one assigned

    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