mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 15:06:36 +01:00
fix: improve haskell classifiers (#4793)
Signed-off-by: witchcraze <witchcraze@gmail.com>
This commit is contained in:
@@ -1364,6 +1364,28 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
|
||||
Metadata: metadata("deno-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "haskell-ghc/7.10.3/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "haskell/ghc",
|
||||
Version: "7.10.3",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/haskell/ghc@7.10.3",
|
||||
Locations: locations("ghc"),
|
||||
Metadata: metadata("haskell-ghc-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "haskell-ghc/8.10.4/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "haskell/ghc",
|
||||
Version: "8.10.4",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/haskell/ghc@8.10.4",
|
||||
Locations: locations("ghc"),
|
||||
Metadata: metadata("haskell-ghc-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "haskell-ghc/9.6.5/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
@@ -1375,6 +1397,17 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
|
||||
Metadata: metadata("haskell-ghc-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "haskell-cabal/1.22.6.0/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "haskell/cabal",
|
||||
Version: "1.22.6.0",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/haskell/cabal@1.22.6.0",
|
||||
Locations: locations("cabal"),
|
||||
Metadata: metadata("haskell-cabal-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "haskell-cabal/3.10.3.0/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
|
||||
Reference in New Issue
Block a user