Keep the path around after writing the yaml, otherwise compile specs couldn't be found

This commit is contained in:
Ettore Di Giacinto
2019-11-23 16:28:50 +01:00
parent 8f6393e157
commit 3b9337a03b
3 changed files with 27 additions and 5 deletions

View File

@@ -437,7 +437,7 @@ func (cs *LuetCompiler) compile(concurrency int, keepPermissions bool, p Compila
Info(pkgTag, " :zap: Building dependency")
compileSpec, err := cs.FromPackage(assertion.Package)
if err != nil {
return nil, errors.New("Error while generating compilespec for " + assertion.Package.GetName())
return nil, errors.Wrap(err, "Error while generating compilespec for "+assertion.Package.GetName())
}
compileSpec.SetOutputPath(p.GetOutputPath())