mirror of
https://github.com/restic/restic.git
synced 2025-01-03 05:35:43 +00:00
Require Go 1.6 or greater
This commit is contained in:
parent
b108966b12
commit
1ad4d1aafd
4 changed files with 10 additions and 12 deletions
12
.travis.yml
12
.travis.yml
|
@ -2,10 +2,8 @@ language: go
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.3.3
|
- 1.6.3
|
||||||
- 1.4.3
|
- 1.7
|
||||||
- 1.5.4
|
|
||||||
- 1.6.2
|
|
||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
|
@ -14,11 +12,7 @@ os:
|
||||||
matrix:
|
matrix:
|
||||||
exclude:
|
exclude:
|
||||||
- os: osx
|
- os: osx
|
||||||
go: 1.3.3
|
go: 1.6.3
|
||||||
- os: osx
|
|
||||||
go: 1.4.3
|
|
||||||
- os: osx
|
|
||||||
go: 1.5.4
|
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
irc:
|
irc:
|
||||||
|
|
|
@ -22,7 +22,7 @@ latest released version.
|
||||||
Build restic
|
Build restic
|
||||||
============
|
============
|
||||||
|
|
||||||
Install Go/Golang (at least version 1.3), then run `go run build.go`,
|
Install Go/Golang (at least version 1.6), then run `go run build.go`,
|
||||||
afterwards you'll find the binary in the current directory:
|
afterwards you'll find the binary in the current directory:
|
||||||
|
|
||||||
$ go run build.go
|
$ go run build.go
|
||||||
|
|
|
@ -13,8 +13,8 @@ init:
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- rmdir c:\go /s /q
|
- rmdir c:\go /s /q
|
||||||
- appveyor DownloadFile https://storage.googleapis.com/golang/go1.6.1.windows-amd64.msi
|
- appveyor DownloadFile https://storage.googleapis.com/golang/go1.7.windows-amd64.msi
|
||||||
- msiexec /i go1.6.1.windows-amd64.msi /q
|
- msiexec /i go1.7.windows-amd64.msi /q
|
||||||
- go version
|
- go version
|
||||||
- go env
|
- go env
|
||||||
- appveyor DownloadFile http://sourceforge.netcologne.de/project/gnuwin32/tar/1.13-1/tar-1.13-1-bin.zip -FileName tar.zip
|
- appveyor DownloadFile http://sourceforge.netcologne.de/project/gnuwin32/tar/1.13-1/tar-1.13-1-bin.zip -FileName tar.zip
|
||||||
|
|
4
build.go
4
build.go
|
@ -278,6 +278,10 @@ func (cs Constants) LDFlags() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
if runtime.Version() < "go1.6" {
|
||||||
|
fmt.Fprintf(os.Stderr, "old version of Go detected (%v), I'll try but no guarantees\n", runtime.Version())
|
||||||
|
}
|
||||||
|
|
||||||
buildTags := []string{}
|
buildTags := []string{}
|
||||||
|
|
||||||
skipNext := false
|
skipNext := false
|
||||||
|
|
Loading…
Reference in a new issue