From 7c70d5c1bd469b7794098cb943b7901cc75cd51c Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 16 Jan 2016 13:40:16 +0100 Subject: [PATCH] Build toolchain for gox only on older Versions of Go --- run_integration_tests.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run_integration_tests.go b/run_integration_tests.go index db4c09de6..ed0618807 100644 --- a/run_integration_tests.go +++ b/run_integration_tests.go @@ -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, " "))