fix: retain backwards compat with TYPE/RECIPE change
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-03-11 19:37:50 +01:00
parent e9cfb076c6
commit d3e127e5c8
2 changed files with 11 additions and 3 deletions

View File

@ -124,7 +124,10 @@ func newApp(env AppEnv, name string, appFile AppFile) (App, error) {
recipe, exists := env["RECIPE"]
if !exists {
return App{}, fmt.Errorf("%s is missing the RECIPE env var", name)
recipe, exists = env["TYPE"]
if !exists {
return App{}, fmt.Errorf("%s is missing the RECIPE env var", name)
}
}
return App{