From dc734dbfa83680616b12ab76c59268114dcf00ca Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 6 Oct 2025 23:35:35 +0800 Subject: [PATCH] fix version generation This is related to a prior set of patches, we're getting CI failures related to how tags are working (or not working); this hopefully fixes that. --- xtask/src/versioning.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/xtask/src/versioning.rs b/xtask/src/versioning.rs index ed0831d98..043e96a74 100644 --- a/xtask/src/versioning.rs +++ b/xtask/src/versioning.rs @@ -10,16 +10,9 @@ use chrono::Local; pub(crate) fn generate_version(add_timestamp: bool) { let output = if cfg!(target_os = "windows") { - Command::new("cmd") - .args(["/C", "git describe --tags --long"]) - .output() - .expect("failed to execute process") + Command::new("cmd").args(["/C", "git describe --long"]).output().expect("failed to execute process") } else { - Command::new("sh") - .arg("-c") - .arg("git describe --tags --long") - .output() - .expect("failed to execute process") + Command::new("sh").arg("-c").arg("git describe --long").output().expect("failed to execute process") }; let gitver = output.stdout; let semver = String::from_utf8_lossy(&gitver);