From f780b40b0d759908bdce1660704f942647fd319d Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Sun, 26 Aug 2018 11:12:41 +1200 Subject: [PATCH] refactor(zsh): always use go modules --- zsh/.config/oh-my-zsh/custom/go.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh/.config/oh-my-zsh/custom/go.zsh b/zsh/.config/oh-my-zsh/custom/go.zsh index b19362f..7900b0c 100644 --- a/zsh/.config/oh-my-zsh/custom/go.zsh +++ b/zsh/.config/oh-my-zsh/custom/go.zsh @@ -1,5 +1,8 @@ # Export $GOPATH export GOPATH=$HOME/go +# Always use Go modules, even inside GOPATH +export GO111MODULE=on + # Add Go binary directory to $PATH export PATH="$PATH:$GOPATH/bin"