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:
parent
2fa93b291a
commit
c88c48a29f
@ -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, " "))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user