-
Notifications
You must be signed in to change notification settings - Fork 148
cmd/gb: verify the Go install has not changed #321
Conversation
cmd/gb: verify the Go install has not changed
Not sure if it warrants opening a new issue (although happy to do so if you think I ought), but this causes failures on Gentoo due to $ go version
go version go1.4.2 linux/amd64
$ go env GOROOT
/usr/lib/go
$ ls -lAFh /usr/lib/go
total 24K
drwxr-xr-x 3 root root 4.0K Apr 4 13:24 4.8.4/
drwxr-xr-x 8 root root 4.0K Mar 19 23:02 doc/
drwxr-xr-x 3 root root 4.0K Mar 19 23:02 include/
drwxr-xr-x 3 root root 4.0K Dec 16 2013 lib/
drwxr-xr-x 5 root root 4.0K Oct 9 2013 pkg/
drwxr-xr-x 46 root root 4.0K Mar 19 23:02 src/ |
I knew there would be one distro that would mes this up. I think it is a mistake that gentoo filter the installed contents of
|
Heh, I'm not opposed, but to be honest also not completely convinced. Is there a good reference anywhere about what's expected to live in Do you think there'd be any chance at all of convincing Go upstream to clearly document the things expected to exist in |
My hope is I can get upstream to adopt this method of detecting go install If I am successful in that, the proposal will include the requirement that
|
That would definitely be very interesting! 👍 I've done a little digging, and found this gem: https://bugs.debian.org/693186 Apparently, |
Thanks. I appreciate that someone else gets to hold this hot potato for a On Tue, Aug 25, 2015 at 4:11 AM, Tianon Gravi notifications@github.com
|
Update #319
This PR adds a check to attempt to diagnose gb failures due to a mismatch between the version of Go that compiled gb, and the version of Go that exists on the machine when gb is invoked.
I expect it will cause some false positives, and if so, we'll address them or remove the check.