How to fix golang "unrecognized import path"
Recently when trying to run go get I ran into the the following error:
ewilson$ go get github.com/nu7hatch/gouuid package crypto/md5: unrecognized import path "crypto/md5" (import path does not begin with hostname)
After some trial and error (and a few conflicting opinions) I chose to unset my $GOROOT environment variable. Apparently when you compile go (I use brew for most installations) the correct $GOROOT value becomes embedded in the go tool. When you set it manually you can end up conflicting with the correct setting.
You may actually need to run the unset command as once a variable is set it may only be unset by using the unset command.
ewilson$ unset GOROOT
Onward.