From 5676a727503c0d6407dc96dab628c935f84f5b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 5 Jun 2024 15:25:28 +0200 Subject: [PATCH] helpers/go: fix missing git fetch --- helpers/helpers.v1.d/go | 1 + 1 file changed, 1 insertion(+) 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