⚙️ Fixup corner case when templating requires

Adds also specific tests to cover that area
This commit is contained in:
Ettore Di Giacinto
2022-04-28 12:57:34 +02:00
parent 2aa4c8a42e
commit b5da2fa7b4
12 changed files with 122 additions and 5 deletions

View File

@@ -1461,7 +1461,7 @@ func (cs *LuetCompiler) templatePackage(vals []map[string]interface{}, pack *typ
return nil, errors.Wrap(err, "getting raw packages")
}
raw := packsRaw.Find(pack.GetName(), pack.GetCategory(), pack.GetVersion())
raw := packsRaw.Find(*pack)
td := templatedata{}
if len(vals) > 0 {
for _, bv := range vals {