feat: initial recursive archive cataloging impl

Signed-off-by: Keith Zantow <keith.zantow@anchore.com>
This commit is contained in:
Keith Zantow
2026-09-10 08:45:36 -04:00
parent 0a93e60b16
commit 8c0d3747ce
85 changed files with 23477 additions and 868 deletions
+7
View File
@@ -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,