Re:Golang 1.4 Internal Packages
by bwilliams on Wednesday June 25, 2014 @05:19PM
(#7946819)
I sound like a broken record, but Golang is totally worthless to me until $GOPATH is abandoned. I don't want everything down to my workspace structure determined for me. Once that's done with I think Go would be an amazing language to use.
[ Parent
| on HN ]
GOPATH drives me crazy. I'm the only one of my co-workers really pushing for golang, but all have said that until GOPATH, dependencies, and versioning get 'fixed' they won't even bother with it.
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.
Re:Golang 1.4 Internal Packages
by artursapek on Wednesday June 25, 2014 @06:05PM
(#7947026)
I'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.