mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 23:46:35 +01:00
adding ruby gemspec support.
Signed-off-by: Toure Dunnon <toure.dunnon@anchore.com>
This commit is contained in:
+10
@@ -62,6 +62,16 @@ func IdentifyDistro(s scope.Scope) distro.Distro {
|
||||
// Catalog the given scope, which may represent a container image or filesystem. Returns the discovered set of packages.
|
||||
func CatalogFromScope(s scope.Scope) (*pkg.Catalog, error) {
|
||||
log.Info("building the catalog")
|
||||
|
||||
// conditionally have two sets of catalogers
|
||||
//var catalogers []cataloger.Cataloger
|
||||
//// if image
|
||||
//// use one set of catalogers
|
||||
//catalogers = ...
|
||||
//
|
||||
//// if dir
|
||||
//// use another set of catalogers
|
||||
|
||||
return cataloger.Catalog(s.Resolver, cataloger.All()...)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user