helpers2.1: go: add --quiet to goenv install + redirect stderr to stdout such that people don't slap an ynh_exec_warn_less in front of ynh_install_go x_x

This commit is contained in:
Alexandre Aubin 2024-06-11 03:10:24 +02:00
parent 8c376c2ae4
commit eb8ce2088b

View file

@ -153,7 +153,7 @@ ynh_install_go () {
# Install the requested version of Go
local final_go_version=$(goenv latest --print "$go_version")
ynh_print_info --message="Installation of Go-$final_go_version"
goenv install --skip-existing "$final_go_version"
goenv install --quiet --skip-existing "$final_go_version" 2>&1
# Store go_version into the config of this app
ynh_app_setting_set --app="$app" --key="go_version" --value="$final_go_version"