constabulary/gb

gb test is broken on darwin

Closed this issue · 4 comments

Hi there! long time user of gb, its a great tool - thanks for making it! For some reason, new go get on OSX is broken and test command no longer works. Here's the output:

gb test -v
_testmain.go:58: cannot use matchString (type func(string, string) (bool, error)) as type testing.testDeps in argument to testing.MainStart:
        func(string, string) (bool, error) does not implement testing.testDeps (missing MatchString method)
FATAL: command "test" failed: exit status 2
make: *** [test] Error 1

Thanks in advance for any information.

Hey @davecheney - so we figured out the issue: under Go 1.8, we get the aforementioned issue. With Go 1.7, its all golden. Moreover, what's weird is that Go 1.8 with Linux works fine, but on darwin it explodes.

Hope this helps - happy to provide any additional information needed.

Thanks @davecheney you were right - should not have been setting the GOROOT. Not doing this, and updating the gb worked. Sorry for the noise, and thanks for the continued efforts on this great tool.