misc: Move to golang 1.21
Unfortunately, this also breaks go-mod-upgrade with: upgrade failed error=Error running go command to discover modules: exit status 1 stderr=go: loading module retractions for golang.org/x/mod@v0.16.0: version "v0.17.0" invalid: resolves to version v0.17.1-0.20240315155916-aa51b25a4485 (v0.17.0 is not a tag) go: loading module retractions for golang.org/x/sync@v0.6.0: version "v0.7.0" invalid: resolves to version v0.7.1-0.20240304172602-14be23e5b48b (v0.7.0 is not a tag)
This commit is contained in:
@@ -144,11 +144,3 @@ func LatestFedoraVersion(ctx context.Context, arch string) (string, error) {
|
||||
//fmt.Printf("max: %d\n", m)
|
||||
return strconv.Itoa(m), nil
|
||||
}
|
||||
|
||||
// TODO: remove this once golang 1.21 is out and it's a built-in.
|
||||
func max(x, y int) int {
|
||||
if x > y {
|
||||
return x
|
||||
}
|
||||
return y
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user