Hi,
On my system "go run" creates ~/go and places pkg there, even though $GOPATH is set. Whereas "go install" places pkg under $GOPATH.
Ideally, I would like ~/go to never be created.
$ ls ~/go
ls: /Users/foo/go: No such file or directory
$ echo $GOPATH
/Users/foo/Google Drive/programming/golang/workspace
$ pwd
$ go install
$ project
[...]
$ ls ~/go
ls: /Users/foo/go: No such file or directory
$ go run ./main.go
[...]
$ ls ~/go
pkg
Thank you for any help you can provide!