Closed lopopolo closed 3 years ago
Cargo supports some pragmas to force rebuilds if non-Rust sources become "dirtied".
This PR forces cargo to rebuild if the SOURCE_DATE_EPOCH env variable changes since it will change how now_data_time and things derived from it are computed.
SOURCE_DATE_EPOCH
now_data_time
https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorerun-if-env-changedname
Thx.
Cargo supports some pragmas to force rebuilds if non-Rust sources become "dirtied".
This PR forces cargo to rebuild if the
SOURCE_DATE_EPOCH
env variable changes since it will change hownow_data_time
and things derived from it are computed.https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorerun-if-env-changedname