3 ms·
I'm a borderline Go fanboy, but GOPATH tends to drive me nuts as well. It'd be nice if it had a sane default. 99% of the time, I'm just doing GOPATH=$PWD.
by Jayschwa 12y ago
I'm a borderline Go fanboy, but GOPATH tends to drive me nuts as well. It'd be nice if it had a sane default. 99% of the time, I'm just doing GOPATH=$PWD.
- artursapek 12y agoI'm glad I'm not the only one confounded by GOPATH. I have a script I use to build my files that does GOPATH=`pwd`:$GOPATH go build $1.go ...where my bash_profile initially exports GOPATH as /usr/local/go. Probably unconventional but hey, it works.