Attempting to build the tree after commit ab096d5 reports:
##### Building Go bootstrap tool.
cmd/dist
go tool dist: FAILED: not a Git repo; must put a VERSION file in $GOROOT
This is because the new code introduced in that commit runs git rev-parse --git-dir in the root of the repository, which on my machine (Fedora 23, git version 2.5.0) causes it to print out merely .git as the path to the Git directory instead of the absolute path. Since all.bash and thus cmd/dist is being run from $GOROOT/src instead of $GOROOT, the new stat check now fails.
On my machine:
$ cd /tmp/go
$ git rev-parse --git-dir
.git
$ cd src
$ git rev-parse --git-dir
/tmp/go/.git
Git also behaves this way on Ubuntu 14.04 LTS (git version 1.9.1), a FreeBSD 9.3 machine I have access to (git version 2.6.1), and OmniOS (git version 1.8.5.6), so I expect this is general long-standing git behavior.
Attempting to build the tree after commit ab096d5 reports:
This is because the new code introduced in that commit runs
git rev-parse --git-dirin the root of the repository, which on my machine (Fedora 23, git version 2.5.0) causes it to print out merely.gitas the path to the Git directory instead of the absolute path. Sinceall.bashand thuscmd/distis being run from $GOROOT/src instead of $GOROOT, the new stat check now fails.On my machine:
Git also behaves this way on Ubuntu 14.04 LTS (git version 1.9.1), a FreeBSD 9.3 machine I have access to (git version 2.6.1), and OmniOS (git version 1.8.5.6), so I expect this is general long-standing git behavior.