mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 15:36:41 +01:00
* add internal dependency resolver Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * refactor dependency relationship resolution to common object Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * replace cataloger decorator with generic processor Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * refactor resolver to be a single function Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * use common dependency specifier for debian Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * use common dependency specifier for arch Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * use common dependency specifier for alpine Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * allow for generic pkg and rel assertions in testpkg helper Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * do not allow for empty results Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * move stable deduplicate comment Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * remove relationship resolver type Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
18 lines
619 B
Go
18 lines
619 B
Go
/*
|
|
Package arch provides a concrete Cataloger implementations for packages relating to the Arch linux distribution.
|
|
*/
|
|
package arch
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/pkg"
|
|
"github.com/anchore/syft/syft/pkg/cataloger/generic"
|
|
"github.com/anchore/syft/syft/pkg/cataloger/internal/dependency"
|
|
)
|
|
|
|
// NewDBCataloger returns a new cataloger object initialized for arch linux pacman database flat-file stores.
|
|
func NewDBCataloger() pkg.Cataloger {
|
|
return generic.NewCataloger("alpm-db-cataloger").
|
|
WithParserByGlobs(parseAlpmDB, pkg.AlpmDBGlob).
|
|
WithProcessors(dependency.Processor(dbEntryDependencySpecifier))
|
|
}
|