mirror of
https://github.com/kennyp/asdf-golang.git
synced 2024-10-06 04:32:07 +08:00
Merge branch 'master' into 107
This commit is contained in:
commit
47250352c3
@ -44,8 +44,8 @@ install_default_go_pkgs() {
|
||||
echo -ne "\nInstalling \033[33m${name}\033[39m go pkg... " >&2
|
||||
|
||||
# if using go > 1.16 then use go install as the preferred donwload path
|
||||
if [ "$go_major_version" -ge 2 ] || [ "${go_minor_version//[!0-9]*}" -ge 16 ]; then
|
||||
if [[ "$name" != *"@"* ]]; then
|
||||
if [ "$go_major_version" -ge 2 ] || [ "${go_minor_version//[!0-9]*/}" -ge 16 ]; then
|
||||
if [[ $name != *"@"* ]]; then
|
||||
name="${name}@latest"
|
||||
fi
|
||||
|
||||
|
@ -8,4 +8,3 @@ function asdf_update_golang_env --on-event fish_prompt
|
||||
set -gx GOBIN (dirname "$GOROOT")/packages/bin
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user