Skip to content

Commit

Permalink
fix semver bump bug
Browse files Browse the repository at this point in the history
  • Loading branch information
antoooks committed May 12, 2024
1 parent 9abde51 commit 0c54819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/gorepomod/internal/repo/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ func (mgr *Manager) Release(
return fmt.Errorf("error getting version from remote")
}

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

newVersion := newVersionSv.Bump(bump)
if newVersion.Equals(target.VersionRemote()) {
return fmt.Errorf(
"version %s already exists on remote - delete it first", newVersion)
Expand Down

0 comments on commit 0c54819

Please sign in to comment.