From 5c92a1770f1a496cfa188632e2bf3d34bd325ad4 Mon Sep 17 00:00:00 2001 From: Mathieu Rollet Date: Wed, 12 Apr 2023 14:10:42 +0200 Subject: [PATCH] Set GOMODCACHE to comply with XDG (#1299) If GOMODCACHE is not set, it defaults to $GOPATH/pkg/mod cf. https://go.dev/ref/mod#environment-variables --- .config/shell/profile | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/shell/profile b/.config/shell/profile index e78f21e..5508943 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -39,6 +39,7 @@ export TMUX_TMPDIR="$XDG_RUNTIME_DIR" export ANDROID_SDK_HOME="$XDG_CONFIG_HOME/android" export CARGO_HOME="$XDG_DATA_HOME/cargo" export GOPATH="$XDG_DATA_HOME/go" +export GOMODCACHE="$XDG_CACHE_HOME/go/mod" export ANSIBLE_CONFIG="$XDG_CONFIG_HOME/ansible/ansible.cfg" export UNISON="$XDG_DATA_HOME/unison" export HISTFILE="$XDG_DATA_HOME/history"