bump minimum go version on Solaris to 1.20

This commit is contained in:
Michael Eischer
2023-04-07 15:40:57 +02:00
parent faa83db9e4
commit 806a0cdce3
3 changed files with 17 additions and 1 deletions
+6
View File
@@ -380,6 +380,12 @@ func main() {
}
}
solarisMinVersion := GoVersion{Major: 1, Minor: 20, Patch: 0}
if env["GOARCH"] == "solaris" && !goVersion.AtLeast(solarisMinVersion) {
fmt.Fprintf(os.Stderr, "Detected version %s is too old, restic requires at least %s for Solaris\n", goVersion, solarisMinVersion)
os.Exit(1)
}
verbosePrintf("detected Go version %v\n", goVersion)
preserveSymbols := false