Expand also when ordering assertions

This commit is contained in:
Ettore Di Giacinto
2019-11-29 19:01:52 +01:00
parent 91b3daf180
commit d0c84d24a0
5 changed files with 53 additions and 44 deletions

View File

@@ -356,11 +356,8 @@ func (pack *DefaultPackage) BuildFormula(definitiondb PackageDatabase, db Packag
// TODO: Expansion needs to go here - and so we ditch Resolvedeps()
p, err := definitiondb.FindPackage(pack)
if err != nil {
p = pack
// FIXME? : returning an errors here makes the world the only source of truth - which is ok in case definitions are all there
//return nil, errors.Wrap(err, "Couldn't find required package in db definition")
p = pack // Relax failures and trust the def
}
// NormalizeFlagged(definitiondb, p)
encodedA, err := p.Encode(db)
if err != nil {
return nil, err