helpers2.1: forgot to propagate the 'goenv latest' fix from helpers v1

This commit is contained in:
Alexandre Aubin 2024-06-23 16:35:58 +02:00
parent 0e4495f11e
commit d8c3ff4c8a

View file

@ -108,7 +108,7 @@ ynh_go_install () {
test -x /usr/bin/go_goenv && mv /usr/bin/go_goenv /usr/bin/go
# Install the requested version of Go
local final_go_version=$(goenv latest --print "$go_version")
local final_go_version=$("$goenv_latest_dir/bin/goenv-latest" --print "$go_version")
ynh_print_info "Installation of Go-$final_go_version"
goenv install --quiet --skip-existing "$final_go_version" 2>&1