From a51a3b57f6d4f523909025cf08aec499b788c1cd Mon Sep 17 00:00:00 2001 From: Apfelwurm Date: Sun, 11 Jan 2026 19:28:27 +0100 Subject: [PATCH] change usage of tags to recipe versions in deploy.go --- cli/app/deploy.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/cli/app/deploy.go b/cli/app/deploy.go index a8b7caab3..130d60f51 100644 --- a/cli/app/deploy.go +++ b/cli/app/deploy.go @@ -281,13 +281,21 @@ checkout as-is. Recipe commit hashes are also supported as values for } func getLatestVersionOrCommit(app appPkg.App) (string, error) { - versions, err := app.Recipe.Tags() + recipeVersions, warnings, err := app.Recipe.GetRecipeVersions() if err != nil { return "", err } - if len(versions) > 0 && !internal.Chaos { - return versions[len(versions)-1], nil + for _, warning := range warnings { + log.Warn(warning) + } + + if len(recipeVersions) > 0 && !internal.Chaos { + latest := recipeVersions[len(recipeVersions)-1] + for tag := range latest { + log.Debug(i18n.G("selected latest recipe version: %s (from %d available versions)", tag, len(recipeVersions))) + return tag, nil + } } head, err := app.Recipe.Head()