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

sccache makes cargo always rebuild dependencies #457

Closed
apiraino opened this issue Jun 21, 2019 · 8 comments
Closed

sccache makes cargo always rebuild dependencies #457

apiraino opened this issue Jun 21, 2019 · 8 comments

Comments

@apiraino
Copy link

apiraino commented Jun 21, 2019

Basic Information

sccache version: 0.2.8, tried also v0.2.9.alpha-0 commit 9e5df99
OS: Linux 5.0.0-17-generic #18-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
cargo version; 1.37.0-nightly (545f35425 2019-05-23)
rustc version: 1.37.0-nightly (4edff843d 2019-06-16)

How to reproduce

$ echo $RUSTC_WRAPPER
sccache
$ git clone https://github.com/apiraino/cargo-sccache-build-bug

$ cargo check
$ cargo clean && cargo build
$ cargo build # unexpected rebuild of all packages

$ unset RUSTC_WRAPPER
$ cargo clean && cargo build
$ cargo build # does not rebuild all dependencies

$ export RUSTC_WRAPPER=sccache
$ cargo clean && cargo build
$ cargo build # rebuild again all dependencies

Logs

CARGO_LOG=trace cargo build &> log.log

log.log.gz

(Notice all those fingerprint error)

@apiraino apiraino changed the title sccache makes cargo build always rebuild dependencies sccache makes cargo always rebuild dependencies Jun 21, 2019
@theduke
Copy link

theduke commented Jun 23, 2019

Duplicate of #436. This was fixed for me in #441.

You can install from git with cargo install --force --git=https://github.com/mozilla/sccache.

A new release would be very welcome.

@tesuji
Copy link
Contributor

tesuji commented Jun 23, 2019

@apiraino, If you are using *nix, can you provide result of whereis sccache?
I am just unable to reproduce the problem on Linux.

@apiraino
Copy link
Author

@theduke confirmed that installing from master branch delivers a fixed version 👍 And, yes, a release would be highly appreciated. Feel free to close this issue if it's not useful anymore.

@lzutao I can consistently reproduce the issue with the 0.2.8 installed with cargo install sccache:

$ whereis sccache
sccache: /home/$USER/.cargo/bin/sccache
$ sccache -V
sccache 0.2.8

By the way, updating from 0.2.8 > 0.2.9 seems to break the cache: I need to delete all cache before running these two versions.

@tesuji
Copy link
Contributor

tesuji commented Jun 23, 2019

Okay then. You could close this issue. None of us has right (permission) to close it (Except owner and collaborators).

@apiraino
Copy link
Author

Dupe of #436

@froydnj
Copy link
Contributor

froydnj commented Jun 24, 2019

@theduke confirmed that installing from master branch delivers a fixed version +1 And, yes, a release would be highly appreciated. Feel free to close this issue if it's not useful anymore.

@chmanchester , are you up for attempting to walk through the release process?

By the way, updating from 0.2.8 > 0.2.9 seems to break the cache: I need to delete all cache before running these two versions.

@apiraino Can you file a bug on this? Even better if you can bisect it down to the offending commit.

@chmanchester
Copy link
Contributor

@theduke confirmed that installing from master branch delivers a fixed version +1 And, yes, a release would be highly appreciated. Feel free to close this issue if it's not useful anymore.

@chmanchester , are you up for attempting to walk through the release process?

Sure, I'll take a look. I was hoping to get the patch sections removed but don't think that's going to happen soon.

@apiraino
Copy link
Author

@apiraino Can you file a bug on this? Even better if you can bisect it down to the offending commit.

I'm not familiar with the codebase but I'll gladly give a try 👍

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

5 participants