From f90a7e654824f49e8db5282b0cf1a9e4351788aa Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 20 Mar 2018 00:33:30 +0800 Subject: [PATCH] build: add GOBIN to PATH for gomobile --- build/ci.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/ci.go b/build/ci.go index 24b58c1ae4..52d675718a 100644 --- a/build/ci.go +++ b/build/ci.go @@ -787,9 +787,10 @@ func gomobileTool(subcmd string, args ...string) *exec.Cmd { cmd.Args = append(cmd.Args, args...) cmd.Env = []string{ "GOPATH=" + build.GOPATH(), + "PATH=" + GOBIN + string(os.PathListSeparator) + os.Getenv("PATH"), } for _, e := range os.Environ() { - if strings.HasPrefix(e, "GOPATH=") { + if strings.HasPrefix(e, "GOPATH=") || strings.HasPrefix(e, "PATH=") { continue } cmd.Env = append(cmd.Env, e)