2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 19:38:57 +00:00

bump minimum go version on Solaris to 1.20

This commit is contained in:
Michael Eischer 2023-04-07 15:31:20 +02:00
parent faa83db9e4
commit 806a0cdce3
3 changed files with 17 additions and 1 deletions

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

View File

@ -0,0 +1,9 @@
Change: Require Go 1.20 for Solaris builds
Building restic on Solaris now requires Go 1.20, as the library used to access
Azure uses the mmap syscall, which is only available on Solaris starting from
Go 1.20.
All other platforms continue to build with Go 1.18.
https://github.com/restic/restic/pull/4201

View File

@ -269,7 +269,8 @@ From Source
***********
restic is written in the Go programming language and you need at least
Go version 1.18. Building restic may also work with older versions of Go,
Go version 1.18. Building for Solaris requires at least Go version 1.20.
Building restic may also work with older versions of Go,
but that's not supported. See the `Getting
started <https://go.dev/doc/install>`__ guide of the Go project for
instructions how to install Go.