consistently use Masterminds/semver (#1209)

This commit is contained in:
Cyril Jouve
2023-12-10 19:05:07 +08:00
committed by GitHub
parent 017bcf22ae
commit 9f2264ce24
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
package testutil
import (
"github.com/blang/semver"
"github.com/Masterminds/semver/v3"
"helm.sh/helm/v3/pkg/chart"
"github.com/helmfile/helmfile/pkg/helmexec"
@@ -35,7 +35,7 @@ func (helm *V3HelmExec) IsHelm3() bool {
func (helm *VersionHelmExec) IsVersionAtLeast(ver string) bool {
currentSemVer := semver.MustParse(helm.version)
verSemVer := semver.MustParse(ver)
return currentSemVer.GTE(verSemVer)
return currentSemVer.Compare(verSemVer) >= 0
}
func (helm *noCallHelmExec) doPanic() {