mirror of
https://github.com/kennyp/asdf-golang.git
synced 2024-10-06 04:32:07 +08:00
Support for the GOBIN environment variable for each Go version (#139)
Set `GOBIN`
This commit is contained in:
parent
0e86b1d5a7
commit
962a601cbd
@ -5,5 +5,6 @@ function asdf_update_golang_env --on-event fish_prompt
|
|||||||
|
|
||||||
set -gx GOROOT (dirname (dirname "$full_path"))
|
set -gx GOROOT (dirname (dirname "$full_path"))
|
||||||
set -gx GOPATH (dirname "$GOROOT")/packages
|
set -gx GOPATH (dirname "$GOROOT")/packages
|
||||||
|
set -gx GOBIN (dirname "$GOROOT")/bin
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -7,6 +7,9 @@ asdf_update_golang_env() {
|
|||||||
|
|
||||||
export GOPATH
|
export GOPATH
|
||||||
GOPATH="$(dirname "${GOROOT:A}")/packages"
|
GOPATH="$(dirname "${GOROOT:A}")/packages"
|
||||||
|
|
||||||
|
export GOBIN
|
||||||
|
GOBIN="$(dirname "${GOROOT:A}")/bin"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user