-
Notifications
You must be signed in to change notification settings - Fork 253
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
grpcio-sys recompiling every build on non-linux platforms #449
Comments
Thanks for the investigation. Can you send a PR to fix it? Only print it when files are generated should be enough. |
…it is being used (fix tikv#449)
…it is being used (fix tikv#449) Signed-off-by: Eran Rundstein <[email protected]>
PR submitted! |
…it is being used (fix tikv#449) Signed-off-by: Eran Rundstein <[email protected]>
Thanks for merging the fix! Any idea when a new version that includes the fix would get released? |
Should be these days. Probably next Monday. |
Sweet, thank you! |
@BusyJay |
Good point! Can you use command |
To get around I removed |
This doesn't result in grpcio-sys being updated in my lock file for some reason. |
@eranrund Can you share your |
Unfortunately it's an enormous project with many crates. We're with bindgen 0.51.1. |
OK, I will downgrade bindgen for 0.5.x due to compatibility issue discussed above.. |
Now, cargo update -p should update grpcio-sys to 0.5.2. |
It did. Thanks again! |
grpcio-sys fixes a bug that trigger recompilation on many platform. See tikv/grpc-rs#449. Signed-off-by: Jay Lee <[email protected]>
grpcio-sys fixes a bug that trigger recompilation on many platform. See tikv/grpc-rs#449. Signed-off-by: Jay Lee <[email protected]>
Description
When compiling (using cargo) for targets that aren't either
x86_64-unknown-linux-gnu
oraarch64-unknown-linux-gnu
, cargo determines thatgrpcio-sys
needs to be recompiled regardless of whether anything has changed.This is happening because of this line in
grpcio-sys/build.rs
:which was introduced in this commit. There is only a
-bindings.rs
file for the 2 targets mentioned above. Cargo will always rerun when it encounters a missing file specified by acargo:rerun-if-changed
directive. See this comment for reference.To Reproduce
This can be reproduced by compiling any package that depends on grpcio-sys (I'm using 0.5.0). For detailed log information, set the
CARGO_LOG
environment variable tocargo::core::compiler::fingerprint=info
:The output will be something similar to:
System information
The text was updated successfully, but these errors were encountered: