mirror of
https://github.com/restic/restic.git
synced 2025-08-14 02:59:49 +00:00
Upgrade min Go version to 1.8
This commit is contained in:
4
build.go
4
build.go
@@ -302,8 +302,8 @@ func (cs Constants) LDFlags() string {
|
||||
|
||||
func main() {
|
||||
ver := runtime.Version()
|
||||
if strings.HasPrefix(ver, "go1") && ver < "go1.7" {
|
||||
fmt.Fprintf(os.Stderr, "Go version %s detected, restic requires at least Go 1.7\n", ver)
|
||||
if strings.HasPrefix(ver, "go1") && ver < "go1.8" {
|
||||
fmt.Fprintf(os.Stderr, "Go version %s detected, restic requires at least Go 1.8\n", ver)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user