--- a/config/build.rs 2022-09-05 10:28:02.000000000 -0700 +++ b/config/build.rs 2022-11-16 11:25:28.938783238 -0700 @@ -13,44 +13,6 @@ } } else { // Otherwise we'll derive it from the git information - - if let Ok(repo) = git2::Repository::discover(".") { - if let Ok(ref_head) = repo.find_reference("HEAD") { - let repo_path = repo.path().to_path_buf(); - - if let Ok(resolved) = ref_head.resolve() { - if let Some(name) = resolved.name() { - let path = repo_path.join(name); - if path.exists() { - println!( - "cargo:rerun-if-changed={}", - path.canonicalize().unwrap().display() - ); - } - } - } - } - } - - let head = Path::new("../.git/HEAD"); - if head.exists() { - let head = head.canonicalize().unwrap(); - println!("cargo:rerun-if-changed={}", head.display()); - if let Ok(output) = std::process::Command::new("git") - .args(&[ - "-c", - "core.abbrev=8", - "show", - "-s", - "--format=%cd-%h", - "--date=format:%Y%m%d-%H%M%S", - ]) - .output() - { - let info = String::from_utf8_lossy(&output.stdout); - ci_tag = info.trim().to_string(); - } - } } let target = std::env::var("TARGET").unwrap_or_else(|_| "unknown".to_string()); --- a/config/Cargo.toml 2022-09-05 10:28:02.000000000 -0700 +++ b/config/Cargo.toml 2022-11-16 11:26:47.258458105 -0700 @@ -10,9 +10,6 @@ [dev-dependencies] env_logger = "0.9" -[build-dependencies] -git2 = { version = "0.14", default-features = false } - [features] distro-defaults = []