Merge branch 'main' into v2

* main:
  build: include "v" prefix in version tags...
This commit is contained in:
Jakob Borg
2025-06-02 20:00:00 +02:00
+4 -4
View File
@@ -71,7 +71,7 @@ func main() {
// We want a stable release. Simply remove the prerelease // We want a stable release. Simply remove the prerelease
// suffix. // suffix.
latest.PreRelease = "" latest.PreRelease = ""
fmt.Println(latest) fmt.Println("v" + latest.String())
return return
} }
@@ -84,7 +84,7 @@ func main() {
if v, err := strconv.Atoi(p); err == nil { if v, err := strconv.Atoi(p); err == nil {
parts[i] = strconv.Itoa(v + 1) parts[i] = strconv.Itoa(v + 1)
latest.PreRelease = semver.PreRelease(strings.Join(parts, ".")) latest.PreRelease = semver.PreRelease(strings.Join(parts, "."))
fmt.Println(latest) fmt.Println("v" + latest.String())
return return
} }
} }
@@ -92,7 +92,7 @@ func main() {
// Otherwise we generate a new rc.1 for the correct next version. // Otherwise we generate a new rc.1 for the correct next version.
next.PreRelease = suffix + ".1" next.PreRelease = suffix + ".1"
fmt.Println(next) fmt.Println("v" + next.String())
return return
} }
@@ -105,7 +105,7 @@ func main() {
latest.PreRelease = suffix + ".1" latest.PreRelease = suffix + ".1"
} }
fmt.Println(latest) fmt.Println("v" + latest.String())
} }
func cmd(name string, args ...string) (string, error) { func cmd(name string, args ...string) (string, error) {