You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
siebenmann
changed the title
cmd/dist: tree fails to build on Fedora 23 after commit ab096d587f9bb5dcdf895511ee6d213aade7e30f
cmd/dist: tree fails to build after commit ab096d587f9bb5dcdf895511ee6d213aade7e30f
Jan 6, 2016
Attempting to build the tree after commit ab096d5 reports:
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. Sinceall.bash
and thuscmd/dist
is 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.
The text was updated successfully, but these errors were encountered: