fix: better warning if flying < 3.8 compose spec
continuous-integration/drone/push Build is failing Details

Closes coop-cloud/organising#350
This commit is contained in:
decentral1se 2023-01-23 18:42:23 +01:00
parent b089109c94
commit b4cce7dcf4
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 4 additions and 1 deletions

View File

@ -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)
}
}