1
0
mirror of https://github.com/containers/youki synced 2024-11-23 17:32:15 +01:00

Add vergen git commit sha override if .git not found

This commit is contained in:
Yashodhan Joshi 2022-10-04 14:40:12 +05:30
parent 583af14902
commit 15978cae6d

@ -4,5 +4,7 @@ use vergen::{vergen, Config, ShaKind};
fn main() -> Result<()> {
let mut config = Config::default();
*config.git_mut().sha_kind_mut() = ShaKind::Short;
*config.git_mut().skip_if_error_mut() = true;
println!("cargo:rustc-env=VERGEN_GIT_SHA_SHORT=unknown");
vergen(config)
}