fix: incremental compilation always compile the common-version crate (#4605)

fix: wrong cargo:rerun
This commit is contained in:
fys
2024-08-22 19:00:33 +08:00
committed by GitHub
parent b9cedf2c1a
commit 3517c13192

View File

@@ -19,7 +19,7 @@ use build_data::{format_timestamp, get_source_time};
use shadow_rs::{CARGO_METADATA, CARGO_TREE};
fn main() -> shadow_rs::SdResult<()> {
println!("cargo:rerun-if-changed=.git/refs/heads");
println!("cargo:rerun-if-changed=../../../.git/refs/heads");
println!(
"cargo:rustc-env=SOURCE_TIMESTAMP={}",
if let Ok(t) = get_source_time() {