From 7d2f178fa8989bd20d04e7db55901448def13ff6 Mon Sep 17 00:00:00 2001 From: Carlos Nihelton Date: Thu, 10 Oct 2024 10:40:52 -0300 Subject: [PATCH] Fix computing the version If we are the tagged commit, git won't add a '-0' or anything alike, so expecting a '-' is a mistake. --- tools/build/compute_version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/compute_version.go b/tools/build/compute_version.go index f01310ee1..90bad6445 100644 --- a/tools/build/compute_version.go +++ b/tools/build/compute_version.go @@ -47,7 +47,7 @@ func computeNumericVersion() string { os.Exit(1) } - expr := regexp.MustCompile(`(\d+\.\d+\.\d+)-`) + expr := regexp.MustCompile(`(\d+\.\d+\.\d+)`) matches := expr.FindStringSubmatch(tag) if len(matches) != 2 { fmt.Fprintf(os.Stderr, "Error: tag %s does not match the expected format\n", tag)