Skip to content

cargo install errors if same version already installed #6727

Closed
@gnzlbg

Description

@gnzlbg

Problem

cargo install is not idempotent on nightly (probably has never been)

Steps

cargo install xargo # OK if xargo not installed
cargo install xargo # Errors

errors with:

Updating crates.io index
  Installing xargo v0.3.13
error: binary `xargo` already exists in destination as part of `xargo v0.3.13`

but the version to install is identical with the version currently installed. This should be a warning instead of a hard error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions