Skip to content

Commit

Permalink
merge from feat branch
Browse files Browse the repository at this point in the history
  • Loading branch information
antoooks committed May 12, 2024
1 parent 2178232 commit 7597e10
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/gorepomod/internal/repo/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package repo
import (
"fmt"
"strconv"
"strings"

"sigs.k8s.io/kustomize/cmd/gorepomod/internal/edit"
"sigs.k8s.io/kustomize/cmd/gorepomod/internal/git"
Expand Down Expand Up @@ -145,13 +144,13 @@ func (mgr *Manager) Release(
gr := git.NewLoud(mgr.AbsPath(), doIt, localFlag)

// e.g. get v0.17.1 from release-kyaml-v0.17.1
newVersionString := strings.Split(gr.GetCurrentVersionFromBranchName(), "-")
newVersionString := gr.GetCurrentVersionFromBranchName()

if len(newVersionString) == 0 {
return fmt.Errorf("error getting version from remote")
}

newVersionSv, err := semver.Parse(newVersionString)
newVersionSv, err := semver.Parse(string(newVersionString))
if err != nil {
return fmt.Errorf("error parsing version string: \"%s\"", newVersionString)
}
Expand Down

0 comments on commit 7597e10

Please sign in to comment.