use custom GOPATH

This commit is contained in:
Tony Blyler 2024-11-19 10:06:04 -05:00
parent 7ed5fab5d8
commit 85fbc308f0
No known key found for this signature in database

View file

@ -76,13 +76,9 @@ if command -v pnpm &> /dev/null; then
fi
if command -v go &> /dev/null; then
GOPATH="$(go env GOPATH)"
if [ -d "${GOPATH}" ]; then
export GOPATH
export GOPATH="${HOME}/.gopath"
mkdir -p "${GOPATH}"
export PATH="${GOPATH}/bin:${PATH}"
else
unset GOPATH
fi
fi
if command -v lazygit &> /dev/null; then