From 983bcaa3a1dcacf45af78e57c19b000b9127ba44 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Fri, 2 Jul 2021 23:12:25 +0100 Subject: [PATCH] Add $GOPATH/bin to $PATH --- roles/home-cli/files/bashrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/home-cli/files/bashrc b/roles/home-cli/files/bashrc index b957b54..a986348 100644 --- a/roles/home-cli/files/bashrc +++ b/roles/home-cli/files/bashrc @@ -112,10 +112,10 @@ then fi # Set up Go. -export GOPROXY=https://proxy.golang.org -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 + export GOPROXY=https://proxy.golang.org + export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go" if [ ! -d "$GOPATH" ] then mkdir -p "$GOPATH/bin" @@ -127,6 +127,7 @@ then export GOROOT="$HOME/opt/go" _acp_add_path "$GOROOT/bin" fi + _acp_add_path "$GOPATH/bin" fi # Useful aliases for Podman and Docker