2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 10:58:55 +00:00

Build toolchain for gox only on older Versions of Go

This commit is contained in:
Alexander Neumann 2016-01-16 13:40:16 +01:00
parent f90381910b
commit 7c70d5c1bd

View File

@ -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, " "))