sskras / .files

Personal attempt at automating setup of a new home dir / managing dot-files in a cross-platform way.
Other
1 stars 0 forks source link

Move `GOPATH` (at least `GOBIN`) under an XDG dir or so #3

Open sskras opened 9 months ago

sskras commented 9 months ago

Things like 2fa are installed by Go into ~/go/bin. That's pretty ugly.

Found a proposal. @nhooyr commented on Jul 23, 2018:

I agree, lets change this proposal to make the default $GOPATH $XDG_DATA_HOME/go because $XDG_DATA_HOME is for user specific essential data. It'll be safer like you said.

So I would probably go like that. Sadly the proposal got rejected. The alternative for me could be:

GOPATH => ~/.local/go

sskras commented 9 months ago

https://www.programming-books.io/essential/go/gopath-goroot-gobin-d6da4b8481f94757bae43be1fdfa9e73

nhooyr commented 9 months ago

Yup, very disappointing decision by the Go team.

sskras commented 9 months ago

On the other hand, almost everything could be done using the properly managed dot-files like .bashrc :P