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 fi
if command -v go &> /dev/null; then if command -v go &> /dev/null; then
GOPATH="$(go env GOPATH)" export GOPATH="${HOME}/.gopath"
if [ -d "${GOPATH}" ]; then mkdir -p "${GOPATH}"
export GOPATH
export PATH="${GOPATH}/bin:${PATH}" export PATH="${GOPATH}/bin:${PATH}"
else
unset GOPATH
fi
fi fi
if command -v lazygit &> /dev/null; then if command -v lazygit &> /dev/null; then