Skip to content

Commit

Permalink
Fix skew semver for release-XX branches (#11531)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola committed Jan 13, 2025
1 parent 436bce7 commit e36edc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/docker/skew/skew_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ var _ = BeforeSuite(func() {
upgradeChannel = strings.Replace(*branch, "release-", "v", 1)
// now that it is in v1.1 format, we want to substract one from the minor version
// to get the previous release
sV, err := semver.Parse(upgradeChannel)
Expect(err).NotTo(HaveOccurred())
sV, err := semver.ParseTolerant(upgradeChannel)
Expect(err).NotTo(HaveOccurred(), "failed to parse version from "+upgradeChannel)
sV.Minor--
upgradeChannel = sV.String()
upgradeChannel = fmt.Sprintf("v%d.%d", sV.Major, sV.Minor)
}

lastMinorVersion, err = tester.GetVersionFromChannel(upgradeChannel)
Expand Down

0 comments on commit e36edc3

Please sign in to comment.