mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 23:46:35 +01:00
adds dependency-of relationships between elixir locked packages, matching how other ecosystem catalogers (alpine, arch, debian, redhat, python) express the dependency graph via the shared dependency.Processor/Specifier mechanism. Signed-off-by: Chris Greeno <cgreeno@gmail.com>
18 lines
607 B
Go
18 lines
607 B
Go
/*
|
|
Package elixir provides a concrete Cataloger implementation relating to packages within the Elixir language ecosystem.
|
|
*/
|
|
package elixir
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/pkg"
|
|
"github.com/anchore/syft/syft/pkg/cataloger/generic"
|
|
"github.com/anchore/syft/syft/pkg/cataloger/internal/dependency"
|
|
)
|
|
|
|
// NewMixLockCataloger returns a cataloger object for Elixir mix.lock files.
|
|
func NewMixLockCataloger() pkg.Cataloger {
|
|
return generic.NewCataloger("elixir-mix-lock-cataloger").
|
|
WithParserByGlobs(parseMixLock, "**/mix.lock").
|
|
WithProcessors(dependency.Processor(mixLockDependencySpecifier))
|
|
}
|