Skip to content

Commit

Permalink
Fix computing the version
Browse files Browse the repository at this point in the history
If we are the tagged commit, git won't add a '-0' or anything alike,
so expecting a '-' is a mistake.
  • Loading branch information
CarlosNihelton committed Oct 10, 2024
1 parent d92906e commit 7d2f178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/build/compute_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7d2f178

Please sign in to comment.