Skip to content

cargo build/run unconditionally rebuilds the target #1386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
crumblingstatue opened this issue Mar 6, 2015 · 3 comments
Closed

cargo build/run unconditionally rebuilds the target #1386

crumblingstatue opened this issue Mar 6, 2015 · 3 comments

Comments

@crumblingstatue
Copy link

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

@alexcrichton
Copy link
Member

Unfortunately this is caused by rust-lang/rust#23090, but hopefully that fix will land soon!

@hugoduncan
Copy link
Contributor

Would rust-lang/rust#23090 also be causing unconditional rebuilds of dependencies with paths specified in .cargo/config?

@alexcrichton
Copy link
Member

It would indeed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants