Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
25 lines
845 B
Diff
25 lines
845 B
Diff
diff --git i/build.rs w/build.rs
|
|
index 2174a43..cf93c2f 100644
|
|
--- i/build.rs
|
|
+++ w/build.rs
|
|
@@ -14,17 +14,8 @@ fn main() {
|
|
// Print the path to make it available during the build
|
|
println!("cargo:rustc-env=SUS_HOME={}", home_dir.to_str().unwrap());
|
|
|
|
- // note: add error checking yourself.
|
|
- let output = std::process::Command::new("git")
|
|
- .args(["rev-parse", "HEAD"])
|
|
- .output()
|
|
- .unwrap();
|
|
- let git_hash = String::from_utf8(output.stdout).unwrap();
|
|
- println!("cargo:rustc-env=GIT_HASH={}", git_hash);
|
|
- println!(
|
|
- "cargo:rustc-env=BUILD_DATE={}",
|
|
- chrono::Local::now().to_rfc3339_opts(chrono::SecondsFormat::Secs, false)
|
|
- );
|
|
+ println!("cargo:rustc-env=GIT_HASH=@GIT_HASH@");
|
|
+ println!("cargo:rustc-env=BUILD_DATE=@GIT_DATE@");
|
|
}
|
|
|
|
fn get_sus_dir() -> PathBuf {
|