2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 11:28:54 +00:00

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

View File

@ -191,8 +191,7 @@ func (env *TravisEnvironment) Prepare() error {
msg("gox: OS/ARCH %v\n", env.goxOSArch) msg("gox: OS/ARCH %v\n", env.goxOSArch)
v := runtime.Version() if runtime.Version() < "go1.5" {
if !strings.HasPrefix(v, "go1.5") && !strings.HasPrefix(v, "go1.6") {
err := run("gox", "-build-toolchain", err := run("gox", "-build-toolchain",
"-osarch", strings.Join(env.goxOSArch, " ")) "-osarch", strings.Join(env.goxOSArch, " "))