Put GOPATH out of the way
GOPATH isn't needed as much since Go Modules (Go v1.11).
This commit is contained in:
parent
cd10edf33b
commit
fa23fcfc7d
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ then
|
|||
fi
|
||||
|
||||
# Set up GOPATH.
|
||||
export GOPATH="$HOME/data/go"
|
||||
export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go"
|
||||
if [ -x "$HOME/opt/go/bin/go" ] || [ -x /usr/bin/go ] || [ -x /usr/local/bin/go ]
|
||||
then
|
||||
if [ ! -d "$GOPATH" ]
|
||||
|
|
Loading…
Reference in a new issue