Skip to content

cargo clean -p only cleans the build for a version with zero arguments #3530

Closed
@nikomatsakis

Description

@nikomatsakis

Given a clean checkout of foo:

cargo clean -p foo
cargo rustc -p foo -- -Zverbose

cargo clean -p foo
cargo rustc -p foo -- -Zverbose

Only the first cargo rustc will actually build. But if you change the argument to -Z verbose the second time, it will build (but only once). My hypothesis (which @alexcrichton confirmed) is that each generates a distinct fingerprint, and cargo clean -p foo is looking for a version with no arguments.

I would expect it rather to clean all builds related to foo with any arguments.

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