This is becoming very frustrating. I set my GOPATH in my ~/.bash_profile
, but Go still says it's not set. So I set it manually, and it still says.
computer:~ doug$ export GOPATH=~/Dropbox/golang
computer:~ doug$ sudo go get -u golang.org/x/tools/cmd/...
package golang.org/x/tools/cmd/...: cannot download, $GOPATH not set. For more details see: go help gopath
What am I doing wrong here? If I type goenv
it even lists it as being set to the right path.