-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go1.21 is EOL go1.22 should be able to be used everywhere except compose which requires go1.23. Signed-off-by: Brian Goff <[email protected]>
- Loading branch information
Showing
4 changed files
with
6 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ import ( | |
) | ||
|
||
func GoVersion(_ *archive.Spec) string { | ||
return goversion.OneTwentyOne | ||
return goversion.OneTwentyTwo | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,10 @@ | ||
package containerd | ||
|
||
import ( | ||
"strings" | ||
|
||
"github.com/Azure/moby-packaging/pkg/archive" | ||
"github.com/Azure/moby-packaging/pkg/goversion" | ||
"github.com/Masterminds/semver/v3" | ||
) | ||
|
||
func GoVersion(spec *archive.Spec) string { | ||
version, _, _ := strings.Cut(spec.Tag, "~") | ||
v, err := semver.NewVersion(version) | ||
if err != nil { | ||
panic(err) | ||
} | ||
|
||
if v.Major() < 2 { | ||
return goversion.OneTwentyOne | ||
} else { | ||
return goversion.OneTwentyTwo | ||
} | ||
return goversion.OneTwentyTwo | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package goversion | ||
|
||
const ( | ||
DefaultVersion = OneTwentyOne | ||
OneTwentyOne = "1.21.12" | ||
OneTwentyTwo = "1.22.5" | ||
DefaultVersion = OneTwentyTwo | ||
OneTwentyTwo = "1.22.8" | ||
OneTwentyThree = "1.23.2" | ||
) |