mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 07:56:36 +01:00
Normalize cataloger configuration patterns (#2365)
* normalize cataloger patterns Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * remove central reference for maven configurable Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
@@ -4,6 +4,7 @@ Package haskell provides a concrete Cataloger implementation relating to package
|
||||
package haskell
|
||||
|
||||
import (
|
||||
"github.com/anchore/syft/syft/pkg"
|
||||
"github.com/anchore/syft/syft/pkg/cataloger/generic"
|
||||
)
|
||||
|
||||
@@ -12,7 +13,7 @@ import (
|
||||
// This hints at splitting these into multiple catalogers, but for now we'll keep them together.
|
||||
|
||||
// NewHackageCataloger returns a new Haskell cataloger object.
|
||||
func NewHackageCataloger() *generic.Cataloger {
|
||||
func NewHackageCataloger() pkg.Cataloger {
|
||||
return generic.NewCataloger("haskell-cataloger").
|
||||
WithParserByGlobs(parseStackYaml, "**/stack.yaml").
|
||||
WithParserByGlobs(parseStackLock, "**/stack.yaml.lock").
|
||||
|
||||
Reference in New Issue
Block a user