Skip to content

Commit

Permalink
Change default $GOPATH to $HOME/go
Browse files Browse the repository at this point in the history
As of Go v1.8, $HOME/go is the default $GOPATH. See golang/go#17262 for the discussion.
  • Loading branch information
tanzeeb authored Oct 14, 2017
1 parent 9f02aa5 commit 0cef421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/available/go.plugin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 0cef421

Please sign in to comment.