-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
set-env.bash ? #138
Comments
F.Y.I (workaround) I'm using the following lines in my .bashrc: asdf_update_golang_env() {
local go_bin_path
go_bin_path="$(asdf which go 2>/dev/null)"
if [[ -n "${go_bin_path}" ]]; then
abs_go_bin_path="$(readlink -f "${go_bin_path}")"
export GOROOT
GOROOT="$(dirname "$(dirname "${abs_go_bin_path}")")"
export GOPATH
GOPATH="$(dirname "${GOROOT}")/packages"
export GOBIN
GOBIN="$(dirname "${GOROOT}")/bin"
fi
}
asdf_update_golang_env |
This should SO be in the Readme |
This should become |
Merged
Thanks for 👍 and ❤️ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using
bash
but there isnt any set-env script for it ? Any specific reason for it ?I could write a simple one, but I'm not sure how it is supposed to support the various possible setups (go installed on system via distro packages for instance)...
The text was updated successfully, but these errors were encountered: