forked from TrueCloudLab/restic
Build toolchain for gox only on older Versions of Go
This commit is contained in:
parent
f90381910b
commit
7c70d5c1bd
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ func (env *TravisEnvironment) Prepare() {
|
||||||
|
|
||||||
msg("gox: OS %v, ARCH %v\n", env.goxOS, env.goxArch)
|
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",
|
run("gox", "-build-toolchain",
|
||||||
"-os", strings.Join(env.goxOS, " "),
|
"-os", strings.Join(env.goxOS, " "),
|
||||||
"-arch", strings.Join(env.goxArch, " "))
|
"-arch", strings.Join(env.goxArch, " "))
|
||||||
|
|
Loading…
Reference in a new issue