Skip to content

cargo build/run unconditionally rebuilds the target #1386

Closed
@crumblingstatue

Description

@crumblingstatue

Since a recent cargo update ( I don't know which ), cargo build / cargo run rebuilds my project unconditionally every time. It doesn't rebuild the dependencies, only the target.

Reproduction:

cargo new foo && cd foo && cargo build && cargo build

I expect that this would only rebuild foo once, but instead, this is the output:

   Compiling foo v0.0.1 (...)
   Compiling foo v0.0.1 (...)

Cargo version: cargo 0.0.1-pre-nightly (dd7c7bd 2015-03-04) (built 2015-03-04)
Rustc version: rustc 1.0.0-nightly (b0746ff19 2015-03-05) (built 2015-03-06)
OS: Linux 3.19.0-1-ARCH #1 SMP PREEMPT Mon Feb 9 07:08:20 CET 2015 x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions