forked from toolshed/abra
refactor(recipe): load load compoes config where its used
This commit is contained in:
@ -69,12 +69,8 @@ recipes.
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
recipe, err := recipePkg.Get(app.Recipe, internal.Offline)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
if err := lint.LintForErrors(recipe); err != nil {
|
||||
r2 := recipePkg.Get2(app.Recipe)
|
||||
if err := lint.LintForErrors(r2); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
@ -106,7 +102,7 @@ recipes.
|
||||
|
||||
if len(versions) == 0 && !internal.Chaos {
|
||||
log.Warn("no published versions in catalogue, trying local recipe repository")
|
||||
recipeVersions, err := recipePkg.GetRecipeVersions(app.Recipe, internal.Offline)
|
||||
recipeVersions, err := r2.GetRecipeVersions(internal.Offline)
|
||||
if err != nil {
|
||||
log.Warn(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user