2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-21 20:35:12 +00:00

Upgrade min Go version to 1.8

This commit is contained in:
Alexander Neumann 2017-08-05 22:15:29 +02:00
parent 072b7a014e
commit d00fe95f10
2 changed files with 2 additions and 5 deletions

View File

@ -2,7 +2,6 @@ language: go
sudo: false sudo: false
go: go:
- 1.7.6
- 1.8.3 - 1.8.3
- tip - tip
@ -16,8 +15,6 @@ env:
matrix: matrix:
exclude: exclude:
- os: osx
go: 1.7.6
- os: osx - os: osx
go: tip go: tip
- os: linux - os: linux

View File

@ -302,8 +302,8 @@ func (cs Constants) LDFlags() string {
func main() { func main() {
ver := runtime.Version() ver := runtime.Version()
if strings.HasPrefix(ver, "go1") && ver < "go1.7" { if strings.HasPrefix(ver, "go1") && ver < "go1.8" {
fmt.Fprintf(os.Stderr, "Go version %s detected, restic requires at least Go 1.7\n", ver) fmt.Fprintf(os.Stderr, "Go version %s detected, restic requires at least Go 1.8\n", ver)
os.Exit(1) os.Exit(1)
} }