News for hackers. Stuff that matters.
Re:Go Modules in 2019 by revskill on Wednesday December 19, 2018 @12:06PM (#18717141)
Because setting environment variables is something most devs like to avoid.
Re:Go Modules in 2019 by cgag on Wednesday December 19, 2018 @12:16PM (#18717267)
No, because I have like 50 projects in ~/src and suddenly have to keep some of my code in ~/src/go/src/GitHub.com/cgag and that annoys me.
Re:Go Modules in 2019 by cyphar on Wednesday December 19, 2018 @12:22PM (#18717316)
I have tried several times to fix this problem in the past 5 or 6 years, once with symlinks (which would break quite often -- it's unsurprising that Plan 9 developers wouldn't care too much for handling symlinks correctly :P).

The current way I handle it is that $HOME/.local is my GOPATH, and $HOME/src links to $HOME/.local/src. So you can just have $HOME/src/github.com/bar/foo -- which is less ideal than just $HOME/src/foo, but it's something at least.

Re:Go Modules in 2019 by lenkite on Friday December 21, 2018 @03:56AM (#18732159)
I keep the source code for my projects in ~/src and I always set my GOPATH to my home dir. So the special 'go' in the path can be avoided. It will just be ~/src/github.com/...

But, yes, I rolled my eyes when learning about GOPATH for the first time.

Re:Go Modules in 2019 by revel on Wednesday December 19, 2018 @05:08PM (#18720236)
it's not just that large numbers of projects are a hassle, they make it harder to develop projects in isolation