• Russ Cox's avatar
    cmd/go: adjust default GOROOT to prefer runtime.GOROOT() spelling · eac6fe08
    Russ Cox authored
    If runtime.GOROOT() and the os.Executable method for finding GOROOT
    find the same directory but with different spellings, prefer the spelling
    returned by runtime.GOROOT().
    
    This avoids an inconsistency if "pwd" returns one spelling but a
    different spelling is used in $PATH (and therefore in os.Executable()).
    make.bash runs with GOROOT=$(cd .. && pwd); the goal is to allow
    the resulting toolchain to use that default setting (unless moved)
    even if the directory spelling is different in $PATH.
    
    Change-Id: If96b28b9e8697f4888f153a400b40bbf58a9128b
    Reviewed-on: https://go-review.googlesource.com/74250
    Run-TryBot: Russ Cox <rsc@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
    eac6fe08
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
buildid Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...