mirror of https://github.com/restic/restic.git
Build toolchain for gox only on older Versions of Go
This commit is contained in:
parent
f90381910b
commit
7c70d5c1bd
|
@ -51,7 +51,8 @@ func (env *TravisEnvironment) Prepare() {
|
|||
|
||||
msg("gox: OS %v, ARCH %v\n", env.goxOS, env.goxArch)
|
||||
|
||||
if !strings.HasPrefix(runtime.Version(), "go1.5") {
|
||||
v := runtime.Version()
|
||||
if !strings.HasPrefix(v, "go1.5") && !strings.HasPrefix(v, "go1.6") {
|
||||
run("gox", "-build-toolchain",
|
||||
"-os", strings.Join(env.goxOS, " "),
|
||||
"-arch", strings.Join(env.goxArch, " "))
|
||||
|
|
Loading…
Reference in New Issue