mirror of
https://github.com/mudler/luet.git
synced 2025-08-01 07:21:21 +00:00
Handle error if we can't generate a compilation spec from a package
This commit is contained in:
parent
71d5b03382
commit
79e98af604
@ -1092,7 +1092,10 @@ func (cs *LuetCompiler) compile(concurrency int, keepPermissions bool, generateF
|
||||
}
|
||||
for _, p := range dbCopy.World() {
|
||||
copy := p.Clone()
|
||||
spec, _ := cs.FromPackage(p)
|
||||
spec, err := cs.FromPackage(p)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed getting compile spec for package "+p.HumanReadableString())
|
||||
}
|
||||
if spec.RequiresFinalImages {
|
||||
copy.Requires([]*pkg.DefaultPackage{})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user