mirror of
https://github.com/octoleo/restic.git
synced 2024-12-23 03:18:55 +00:00
Do not build toolchain with gox for Go >= 1.5
This commit is contained in:
parent
2fa93b291a
commit
c88c48a29f
@ -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, " "))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user