• Russ Cox's avatar
    cmd/dist: run commands in $GOROOT/src not $GOROOT when possible · 6e221a90
    Russ Cox authored
    The go command prints paths in errors relative to its current directory.
    Since all.bash and run.bash are run in $GOROOT/src, prefer to run
    the go command, so that the relative paths are correct.
    
    Before this CL, running all.bash in $GOROOT/src:
    
    	##### Testing race detector
    	# net/http
    	src/net/http/transport.go:1257: cannot take the address of <node EFACE>
    
    This is wrong (or at least less useful) because there is no $GOROOT/src/src/net/http directory.
    
    Change-Id: I0c0d52c22830d79b3715f51a6329a3d33de52a72
    Reviewed-on: https://go-review.googlesource.com/9157Reviewed-by: 's avatarRob Pike <r@golang.org>
    6e221a90
Name
Last commit
Last update
..
README Loading commit data...
build.go Loading commit data...
buildgo.go Loading commit data...
buildruntime.go Loading commit data...
buildtool.go Loading commit data...
cpuid_386.s Loading commit data...
cpuid_amd64.s Loading commit data...
cpuid_default.s Loading commit data...
main.go Loading commit data...
sys_default.go Loading commit data...
sys_windows.go Loading commit data...
test.go Loading commit data...
util.go Loading commit data...
util_gc.go Loading commit data...
util_gccgo.go Loading commit data...