mirror of
https://github.com/mudler/luet.git
synced 2025-09-15 23:00:04 +00:00
⚙️ Fixup corner case when templating requires
Adds also specific tests to cover that area
This commit is contained in:
@@ -54,7 +54,7 @@ func BuildCollectionParser(srcDir, currentpath, name string, templates []string,
|
||||
compileDefPath := pack.Rel(CompilerDefinitionFile)
|
||||
if fileHelper.Exists(compileDefPath) {
|
||||
|
||||
raw := packsRaw.Find(pack.GetName(), pack.GetCategory(), pack.GetVersion())
|
||||
raw := packsRaw.Find(pack)
|
||||
buildyaml, err := ioutil.ReadFile(compileDefPath)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "Error reading file "+currentpath)
|
||||
@@ -113,7 +113,7 @@ func RuntimeCollectionParser(srcDir, currentpath, name string, templates []strin
|
||||
|
||||
compileDefPath := p.Rel(CompilerDefinitionFile)
|
||||
if fileHelper.Exists(compileDefPath) {
|
||||
raw := packsRaw.Find(p.GetName(), p.GetCategory(), p.GetVersion())
|
||||
raw := packsRaw.Find(p)
|
||||
buildyaml, err := ioutil.ReadFile(compileDefPath)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "Error reading file "+currentpath)
|
||||
|
Reference in New Issue
Block a user