4 ms·
You don't have to do this. What I do is set the GOPATH to a standard place: $ set GOPATH=$HOME/.local/share/go All my imports end up there. For all my projec
by rakoo 13y ago
You don't have to do this.
What I do is set the GOPATH to a standard place:
$ set GOPATH=$HOME/.local/share/go
All my imports end up there. For all my projects (which are hosted on github), I manually create this dir:
$ mkdir -p $GOPATH/src/github.com/rakoo
(which should only happen once) and then just link my project, where the code lives, to there:
$ ln -s $HOME/my/real/path $GOPATH/src/github.com/rakoo
(which should only happen once per project), and all is fine in the world, because symlinks work as expected. It's not bothering me enough to have created a supplementary shell script.