diff --git a/syft/pkg/cataloger/debian/cataloger.go b/syft/pkg/cataloger/debian/cataloger.go index 0e47eead7..7e0fe103a 100644 --- a/syft/pkg/cataloger/debian/cataloger.go +++ b/syft/pkg/cataloger/debian/cataloger.go @@ -10,6 +10,7 @@ import ( ) // NewDBCataloger returns a new Deb package cataloger capable of parsing DPKG status DB flat-file stores. +// Deprecated: use NewDpkgDBCataloger with a configuration func NewDBCataloger() pkg.Cataloger { return NewDpkgDBCataloger(DefaultCatalogerConfig()) } @@ -24,6 +25,7 @@ func NewDpkgDBCataloger(cfg CatalogerConfig) pkg.Cataloger { } // NewArchiveCataloger returns a new Debian package cataloger object capable of parsing .deb archive files +// Deprecated: use NewDpkgArchiveCataloger with a configuration func NewArchiveCataloger() pkg.Cataloger { return NewDpkgDBCataloger(DefaultCatalogerConfig()) } diff --git a/syft/pkg/cataloger/debian/cataloger_test.go b/syft/pkg/cataloger/debian/cataloger_test.go index 02bd23c9e..3a382a3af 100644 --- a/syft/pkg/cataloger/debian/cataloger_test.go +++ b/syft/pkg/cataloger/debian/cataloger_test.go @@ -281,7 +281,7 @@ func TestDpkgArchiveCataloger(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - c := NewArchiveCataloger() + c := NewDpkgArchiveCataloger(CatalogerConfig{IncludeDeInstalled: true}) pkgtest.NewCatalogTester(). WithImageResolver(t, tt.name). IgnoreLocationLayer(). // this fixture can be rebuilt, thus the layer ID will change