From 32851d4d998737f4fca1174acedaae18aa782817 Mon Sep 17 00:00:00 2001 From: Moritz Date: Sun, 29 Jan 2023 16:46:55 +0100 Subject: [PATCH] fix: always fetch all repository tags --- pkg/recipe/recipe.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/recipe/recipe.go b/pkg/recipe/recipe.go index 4e1df32a..b11c5efd 100644 --- a/pkg/recipe/recipe.go +++ b/pkg/recipe/recipe.go @@ -616,6 +616,11 @@ func EnsureUpToDate(recipeName string) error { return err } + fetchOpts := &git.FetchOptions{ + Tags: git.AllTags, + } + repo.Fetch(fetchOpts) + opts := &git.PullOptions{ Force: true, ReferenceName: branch,