Skip to content

Commit 6a58a9f

Browse files
committed
fix: trim 'v' prefix when getting helper image tag version due to the new semver release pipeline
1 parent af82c13 commit 6a58a9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

version/version.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ package version
2323

2424
import (
2525
"os"
26+
"strings"
2627

2728
"github.com/heroku/docker-registry-client/registry"
2829
log "github.com/sirupsen/logrus"
@@ -57,7 +58,7 @@ func GetHelperImageVersion() string {
5758
if len(Version) == 0 {
5859
return "latest"
5960
}
60-
return Version
61+
return strings.TrimPrefix(Version, "v")
6162
}
6263

6364
// GetK3sVersion returns the version string for K3s

0 commit comments

Comments
 (0)