Do not build toolchain with gox for Go >= 1.5

This commit is contained in:
Alexander Neumann 2016-08-16 20:51:46 +02:00
parent 2fa93b291a
commit c88c48a29f
1 changed files with 1 additions and 2 deletions

View File

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