Skip to content
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

Cargo: unnecessary rebuilds #7514

Closed
brightlandco opened this issue Oct 15, 2019 · 2 comments
Closed

Cargo: unnecessary rebuilds #7514

brightlandco opened this issue Oct 15, 2019 · 2 comments
Labels
C-bug Category: bug

Comments

@brightlandco
Copy link

Problem

cargo test causes a rebuild of unchanged files.

Steps

For a reasonably large project with multiple sub-crates etc:

  1. cargo test
  2. cargo test
  3. cargo test

Each time cargo rebuilds files before running tests- major time waste (doesn't happen for small projects).

Possible Solution(s)

Delta checking / dependency system isn't working?

Notes

Output of cargo version:

cargo 1.38.0 (23ef9a4 2019-08-20)

@brightlandco brightlandco added the C-bug Category: bug label Oct 15, 2019
@ehuss
Copy link
Contributor

ehuss commented Oct 15, 2019

Can you provide more details or a reproduction? I would look for a misbehaving build script.

You can also run with the CARGO_LOG=cargo::core::compiler::fingerprint=trace environment variable to get some logging information which explains why cargo thinks it needs to be rebuilt.

@ehuss
Copy link
Contributor

ehuss commented Nov 8, 2019

I'm going to close this for now. If you can provide more detail, feel free to reopen.

@ehuss ehuss closed this as completed Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants