mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 15:06:36 +01:00
feat: initial recursive archive cataloging impl
Signed-off-by: Keith Zantow <keith.zantow@anchore.com>
This commit is contained in:
@@ -140,6 +140,13 @@ func DefaultPackageTaskFactories() Factories {
|
||||
),
|
||||
newPackageTaskFactory(
|
||||
func(cfg CatalogingFactoryConfig) pkg.Cataloger {
|
||||
// once the archive cataloger task owns extraction, java archives arrive as extracted
|
||||
// filesystems rather than as files, and the cataloger that reads them is a different
|
||||
// one. The archive-reading cataloger is what runs when nothing else extracts, which is
|
||||
// the default; it is deprecated in the sense that it has no role in the enabled path.
|
||||
if cfg.PackagesConfig.JavaArchive.NestedArchivesHandledExternally {
|
||||
return java.NewArchiveContentsCataloger(cfg.PackagesConfig.JavaArchive)
|
||||
}
|
||||
return java.NewArchiveCataloger(cfg.PackagesConfig.JavaArchive)
|
||||
},
|
||||
pkgcataloging.DirectoryTag, pkgcataloging.InstalledTag, pkgcataloging.ImageTag, pkgcataloging.LanguageTag, Java, Maven,
|
||||
|
||||
Reference in New Issue
Block a user