• Hiroshi Ioka's avatar
    all: correct location of go tool · fb54abe9
    Hiroshi Ioka authored
    In general, there are no guarantee that `go` command exist on $PATH.
    This CL tries to get `go` command from $GOROOT/bin instead.
    
    There are three kinds of code we should handle:
        For normal code, the CL implements goCmd() or goCmdName().
        For unit tests, the CL uses testenv.GoTool() or testenv.GoToolPath().
        For integration tests, the CL sets PATH=$GOROOT/bin:$PATH in cmd/dist.
    
    Note that make.bash sets PATH=$GOROOT/bin:$PATH in the build process.
    So this change is only useful when we use toolchain manually.
    
    Updates #21875
    
    Change-Id: I963b9f22ea732dd735363ececde4cf94a5db5ca2
    Reviewed-on: https://go-review.googlesource.com/64650
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    fb54abe9
Name
Last commit
Last update
..
cpu Loading commit data...
nettrace Loading commit data...
poll Loading commit data...
race Loading commit data...
singleflight Loading commit data...
syscall Loading commit data...
testenv Loading commit data...
trace Loading commit data...