From 0cef421c9741649f7ec7f30a67ef55550a1c8370 Mon Sep 17 00:00:00 2001 From: Tanzeeb Khalili Date: Sat, 14 Oct 2017 02:13:55 -0400 Subject: [PATCH] Change default $GOPATH to $HOME/go As of Go v1.8, $HOME/go is the default $GOPATH. See https://github.com/golang/go/issues/17262 for the discussion. --- plugins/available/go.plugin.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/available/go.plugin.bash b/plugins/available/go.plugin.bash index 093c2c4cbf..c9fcdff868 100644 --- a/plugins/available/go.plugin.bash +++ b/plugins/available/go.plugin.bash @@ -7,5 +7,5 @@ about-plugin 'go environment variables & path configuration' export GOROOT=${GOROOT:-$(go env | grep GOROOT | cut -d'"' -f2)} pathmunge "${GOROOT}/bin" -export GOPATH=${GOPATH:-"$HOME/.go"} +export GOPATH=${GOPATH:-"$HOME/go"} pathmunge "${GOPATH}/bin"