Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE-169: GOENV_GOPATH_PREFIX does not work as expected #170

Merged
merged 3 commits into from
Mar 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ os:
# NOTE: Use `xenial` and/or newer since `make`
# bundled there is new enough version to support `.ONESHELL` in `Makefile`.
dist: xenial
osx_image: xcode12.2
addons:
homebrew:
brewfile: true
Expand Down
6 changes: 3 additions & 3 deletions libexec/goenv-sh-rehash
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ if [ "${currentVersionName}" != "system" ]; then
fi
else
if [ -n "${GOPATH}" ] && [ "${GOENV_APPEND_GOPATH}" = "1" ]; then
echo "export GOPATH=\"${GOENV_GOPATH_PREFIX}/${GOENV_VERSION}:${GOPATH}\""
echo "export GOPATH=\"${GOENV_GOPATH_PREFIX}/${currentVersionName}:${GOPATH}\""
elif [ -n "${GOPATH}" ] && [ "${GOENV_PREPEND_GOPATH}" = "1" ]; then
echo "export GOPATH=\"${GOPATH}:${GOENV_GOPATH_PREFIX}/${GOENV_VERSION}\""
echo "export GOPATH=\"${GOPATH}:${GOENV_GOPATH_PREFIX}/${currentVersionName}\""
else
echo "export GOPATH=\"${GOENV_GOPATH_PREFIX}/${GOENV_VERSION}\""
echo "export GOPATH=\"${GOENV_GOPATH_PREFIX}/${currentVersionName}\""
fi
fi
fi
Expand Down