Open Guiguiprim opened 2 years ago
For the time being a working work-around is to empty define OBFSTR_SEED
.
Related to https://github.com/paritytech/cachepot/issues/137
Once built with a value for the environment variable, changing the environment variable does trigger a rebuild, but the *.d
is not updated (probably false cache reuse) and we are again in a systematic rebuild situation.
Thank you for the report! @Xanewok iff you have the capacity to take a look, I won't get around to it until two weeks from now.
A dependency that use
std::option_env!()
cause systematic rebuild.In my case: the dependency is the crate
obfstr
since version 0.4.0. It tries to readOBFSTR_SEED
that I do not define.From a small investigation it looks like meta-data saved by rustc about environment variable dependency is different when build with cachepot.
# env-dep:OBFSTR_SEED
became# env-dep:OBFSTR_SEED=
which I guess triggers the rebuild by cachepot because the variable is not defined and it was expected to be defined empty.