mirror of
https://github.com/restic/restic.git
synced 2024-12-22 07:43:03 +00:00
Upgrade min Go version to 1.8
This commit is contained in:
parent
072b7a014e
commit
d00fe95f10
2 changed files with 2 additions and 5 deletions
|
@ -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
|
||||||
|
|
4
build.go
4
build.go
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue