From c88c48a29f68f1fbe245e1304df6e3a708ea2db0 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Tue, 16 Aug 2016 20:51:46 +0200 Subject: [PATCH] Do not build toolchain with gox for Go >= 1.5 --- run_integration_tests.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/run_integration_tests.go b/run_integration_tests.go index 7c727d743..3f98c64cd 100644 --- a/run_integration_tests.go +++ b/run_integration_tests.go @@ -191,8 +191,7 @@ func (env *TravisEnvironment) Prepare() error { msg("gox: OS/ARCH %v\n", env.goxOSArch) - v := runtime.Version() - if !strings.HasPrefix(v, "go1.5") && !strings.HasPrefix(v, "go1.6") { + if runtime.Version() < "go1.5" { err := run("gox", "-build-toolchain", "-osarch", strings.Join(env.goxOSArch, " "))