Solved go: cannot find GOROOT directory

Hello,

I've installed lang/go and can't use go commands because of GOROOT warning:

Code:
/usr/local/go14/bin/go get github.com/OpenDiablo2/OpenDiablo2
go: cannot find GOROOT directory: /usr/local/go14

For what I've searched GOROOT is set correctly to /usr/local/go14.

Thanks,

Nuno Teixeira
 
If you look at pkg info -l go you'll notice it's /usr/local/go.

That's strange:

Code:
pkg info -l go14
go14-1.4.3_6:
        /usr/local/go14/AUTHORS
        /usr/local/go14/CONTRIBUTORS
        /usr/local/go14/LICENSE
        /usr/local/go14/PATENTS
        /usr/local/go14/README
        /usr/local/go14/VERSION
        /usr/local/go14/bin/go
        ...
 
Back
Top