From fa23fcfc7df254f5d2f3f1b2ad57aaa6f0ebc2c0 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Wed, 30 Jun 2021 22:23:35 +0100 Subject: [PATCH] Put GOPATH out of the way GOPATH isn't needed as much since Go Modules (Go v1.11). --- roles/home-cli/files/bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/home-cli/files/bashrc b/roles/home-cli/files/bashrc index 3335df5..20c4d36 100644 --- a/roles/home-cli/files/bashrc +++ b/roles/home-cli/files/bashrc @@ -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" ]