Skip to content

Commit

Permalink
fix: trim 'v' prefix when getting helper image tag version due to the…
Browse files Browse the repository at this point in the history
… new semver release pipeline
  • Loading branch information
iwilltry42 committed Aug 24, 2021
1 parent af82c13 commit 6a58a9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ package version

import (
"os"
"strings"

"github.com/heroku/docker-registry-client/registry"
log "github.com/sirupsen/logrus"
Expand Down Expand Up @@ -57,7 +58,7 @@ func GetHelperImageVersion() string {
if len(Version) == 0 {
return "latest"
}
return Version
return strings.TrimPrefix(Version, "v")
}

// GetK3sVersion returns the version string for K3s
Expand Down

0 comments on commit 6a58a9f

Please sign in to comment.