From a58a01cbcd014c0e5a003fda903e0421051a77c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ai-chan-0411=20=28=E8=97=8D=29?= Date: Wed, 15 Apr 2026 06:40:06 +0900 Subject: [PATCH] fix(build): match only semver tags in git_version() Change --match pattern from "v*" to "v[0-9]*" so that git describe only considers semantic version tags (e.g. v0.0.28) and skips non-version tags like vm-dev. Closes #832 --- crates/openshell-core/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/openshell-core/build.rs b/crates/openshell-core/build.rs index c89a03483..32968329f 100644 --- a/crates/openshell-core/build.rs +++ b/crates/openshell-core/build.rs @@ -64,7 +64,7 @@ fn main() -> Result<(), Box> { /// Returns `None` when git is unavailable or the repo has no matching tags. fn git_version() -> Option { let output = std::process::Command::new("git") - .args(["describe", "--tags", "--long", "--match", "v*"]) + .args(["describe", "--tags", "--long", "--match", "v[0-9]*"]) .output() .ok()?;