magefile: Update isGoLatest to check for Go 1.21

This commit is contained in:
abdullah-alaadine authored and Bjørn Erik Pedersen committed 2023-10-04 16:07:40 +02:00
1 parent 4c95389c25
commit 37a2d5eb4e
1 file changed
+1 -1
+1 -1
View File
@@ -329,7 +329,7 @@ func runCmd(env map[string]string, cmd string, args ...any) error {
}
func isGoLatest() bool {
return strings.Contains(runtime.Version(), "1.14")
return strings.Contains(runtime.Version(), "1.21")
}
func isCI() bool {