add gopath to path

This commit is contained in:
thek4n 2024-11-24 22:04:50 +03:00
parent 0e698d4f3b
commit 1766802248

View File

@ -51,4 +51,9 @@ fi
export GOCACHE="/tmp/go-cache" export GOCACHE="/tmp/go-cache"
export GOPATH="${HOME}/.cache/go" export GOPATH="${HOME}/.cache/go"
export GOENV="${GOPATH}/env" export GOENV="${GOPATH}/env"
export GOBIN="${GOPATH}/bin"
export GOMODCACHE="${GOPATH}/pkg/mod" export GOMODCACHE="${GOPATH}/pkg/mod"
if [ -d "${GOBIN}" ] ; then
export PATH="${PATH}:${GOBIN}"
fi