Skip to content

cargo update prints Adding + Removing lines when multiple versions of the same crate are updated #9408

Open
@Nemo157

Description

@Nemo157

Problem
The more concise Updating lines are not printed if multiple versions of the same crate are updated in one command

Setup

> cargo new foo && cd foo
> echo 'bs58_02 = { package = "bs58", version = "0.2.0" }' >> Cargo.toml
> echo 'bs58_03 = { package = "bs58", version = "0.3.0" }' >> Cargo.toml
> cargo generate-lockfile
Updating crates.io index

> cargo update -p bs58:0.2.5 --precise 0.2.0
Updating crates.io index
Updating bs58 v0.2.5 -> v0.2.0

> cargo update -p bs58:0.3.1 --precise 0.3.0
Updating crates.io index
Updating bs58 v0.3.1 -> v0.3.0

Current

> cargo update
Updating crates.io index
Removing bs58 v0.2.0
Removing bs58 v0.3.0
Adding bs58 v0.2.5
Adding bs58 v0.3.1

Expectation

> cargo update
Updating crates.io index
Updating bs58 v0.2.0 -> v0.2.5
Updating bs58 v0.3.0 -> v0.3.1

Notes

Output of cargo version: cargo 1.53.0-nightly (65d57e6f3 2021-04-04)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugCommand-updateS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions