From b4cce7dcf46323c0940a356e1cfe723c8d3a80f1 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Mon, 23 Jan 2023 18:42:23 +0100 Subject: [PATCH] fix: better warning if flying < 3.8 compose spec Closes https://git.coopcloud.tech/coop-cloud/organising/issues/350 --- cli/internal/validate.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/internal/validate.go b/cli/internal/validate.go index 02a024de..8a4debe1 100644 --- a/cli/internal/validate.go +++ b/cli/internal/validate.go @@ -35,7 +35,10 @@ func ValidateRecipe(c *cli.Context, ensureLatest bool) recipe.Recipe { } logrus.Warn(err) } else { - logrus.Fatal(err) + if strings.Contains(err.Error(), "template_driver is not allowed") { + logrus.Warnf("ensure %s recipe compose.* files include \"version: '3.8'\"", recipeName) + } + logrus.Fatalf("unable to validate recipe: %s", err) } }