diff --git a/helpers/helpers.v1.d/go b/helpers/helpers.v1.d/go index 63ff0548d..b939ae548 100644 --- a/helpers/helpers.v1.d/go +++ b/helpers/helpers.v1.d/go @@ -137,6 +137,7 @@ ynh_install_go () { else ynh_print_info --message="Updating xxenv-latest..." fi + git fetch -q --tags --prune origin local git_latest_tag=$(git describe --tags "$(git rev-list --tags --max-count=1)") git checkout -q "$git_latest_tag" popd