feat: add use-all-catalogers flag (#1050)

This commit is contained in:
cpendery
2022-06-27 10:24:45 -04:00
committed by GitHub
parent d5e12ff89c
commit 2b8e15b638
2 changed files with 20 additions and 0 deletions
+4
View File
@@ -64,6 +64,10 @@ func CatalogPackages(src *source.Source, cfg cataloger.Config) (*pkg.Catalog, []
return nil, nil, nil, fmt.Errorf("unable to determine cataloger set from scheme=%+v", src.Metadata.Scheme)
}
if cataloger.RequestedAllCatalogers(cfg) {
catalogers = cataloger.AllCatalogers(cfg)
}
catalog, relationships, err := cataloger.Catalog(resolver, release, catalogers...)
if err != nil {
return nil, nil, nil, err