-
Notifications
You must be signed in to change notification settings - Fork 74
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
bigdecimal 0.4.0
always forces a rebuild (on mac)
#105
Comments
0.4.0
always forces a rebuild
I can reproduce this on my macbook, but running multiple builds on my Linux machine does not trigger a recompile. I'm not sure why there will be a difference. It's been merged and will be in v0.4.1, soon. |
Thank you @akubera -- I was also seeing this on Mac Do you have any idea when yo plan to release |
0.4.0
always forces a rebuild0.4.0
always forces a rebuild (on mac)
I think some cases have been fixed, but I still see bigdecimal get rebuilt sometimes and im not sure what the pattern is yet. |
I think you could use this macro https://docs.rs/const-str/latest/const_str/macro.parse.html and I've used rustc-env without rebuilding issues like this https://github.com/shotover/shotover-proxy/blob/468cea8afab29a2c5eb9798b73971337b04d89ce/shotover-proxy/build.rs#L5 |
Unfortunately its minimum Rust version is 1.64.0, and this project supports older versions. But that is a good crate to know, thanks! |
After we updated to bigdecimal
0.4.0
in apache/datafusion#6848 our project now always rebuilds even when we make no code changeReproducer
run this in this repository:
I expect the second invocation of cargo test not to recompile, it should just rerun the test
In DataFusion, when I run
cargo test -v
the following is output in the following line
It appears to me that the issue is that build.rs always rewrites
default_precision.rs
even when there are no changes:bigdecimal-rs/build.rs
Line 16 in b80509a
I think this could be fixed by checking if the contents of
default_precision.rs
would be changed prior to rewriting themThe text was updated successfully, but these errors were encountered: