diff options
author | Felix Lange <fjl@twurst.com> | 2017-08-07 21:50:31 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-08-07 22:08:50 +0800 |
commit | f59a49d591e3311b030b57d2be488a6303a3747a (patch) | |
tree | bf98aa63d62d02226bb0f4a186127b4741a177ca /build/ci.go | |
parent | 46cf0a616b597dfb8b1feff80ad58b6eb81e57d5 (diff) | |
download | dexon-f59a49d591e3311b030b57d2be488a6303a3747a.tar dexon-f59a49d591e3311b030b57d2be488a6303a3747a.tar.gz dexon-f59a49d591e3311b030b57d2be488a6303a3747a.tar.bz2 dexon-f59a49d591e3311b030b57d2be488a6303a3747a.tar.lz dexon-f59a49d591e3311b030b57d2be488a6303a3747a.tar.xz dexon-f59a49d591e3311b030b57d2be488a6303a3747a.tar.zst dexon-f59a49d591e3311b030b57d2be488a6303a3747a.zip |
internal/build: add GoTool and document why it uses GOROOT
Diffstat (limited to 'build/ci.go')
-rw-r--r-- | build/ci.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/build/ci.go b/build/ci.go index e631d70ef..6fe03db71 100644 --- a/build/ci.go +++ b/build/ci.go @@ -250,10 +250,7 @@ func goTool(subcmd string, args ...string) *exec.Cmd { } func goToolArch(arch string, subcmd string, args ...string) *exec.Cmd { - gocmd := filepath.Join(runtime.GOROOT(), "bin", "go") - cmd := exec.Command(gocmd, subcmd) - cmd.Args = append(cmd.Args, args...) - + cmd := build.GoTool(subcmd, args...) if subcmd == "build" || subcmd == "install" || subcmd == "test" { // Go CGO has a Windows linker error prior to 1.8 (https://github.com/golang/go/issues/8756). // Work around issue by allowing multiple definitions for <1.8 builds. |