Don't set GO* env vars if ~/go exists

~/go is also used as a cache by a system-installed go compiler, and
setting GOROOT messes this up.
This commit is contained in:
Peter J. Holzer 2018-10-26 18:24:32 +02:00
parent 269bb3d7b0
commit 8ec9ed6f38
1 changed files with 0 additions and 13 deletions

13
.zshenv
View File

@ -277,19 +277,6 @@ case "$FQDN" in
;; ;;
esac esac
if [ -d $HOME/go ]
then
export GOROOT=$HOME/go
export GOOS=linux
case `uname -m` in
x86_64)
export GOARCH=amd64
;;
*)
export GOARCH=386
esac
fi
case "$FQDN" in case "$FQDN" in
tsimri.wsr.ac.at) tsimri.wsr.ac.at)
export GET_PASS_FILES="/home/hjp/wrk/admin/info/pwd_work.gpg /home/hjp/Notes/pw.gpg" export GET_PASS_FILES="/home/hjp/wrk/admin/info/pwd_work.gpg /home/hjp/Notes/pw.gpg"