fix: consul classifier (#4741)

Signed-off-by: witchcraze <witchcraze@gmail.com>
This commit is contained in:
witchcraze
2026-04-17 10:38:24 -04:00
committed by GitHub
parent 9b58efed0c
commit 26175d74f8
5 changed files with 63 additions and 3 deletions
@@ -1111,6 +1111,28 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
Metadata: metadata("consul-binary"),
},
},
{
logicalFixture: "consul/1.12.9/linux-amd64",
expected: pkg.Package{
Name: "consul",
Version: "1.12.9",
Type: "binary",
PURL: "pkg:golang/github.com/hashicorp/consul@1.12.9",
Locations: locations("consul"),
Metadata: metadata("consul-binary"),
},
},
{
logicalFixture: "consul/1.7.14/linux-amd64",
expected: pkg.Package{
Name: "consul",
Version: "1.7.14",
Type: "binary",
PURL: "pkg:golang/github.com/hashicorp/consul@1.7.14",
Locations: locations("consul"),
Metadata: metadata("consul-binary"),
},
},
{
logicalFixture: "vault/1.21.0-rc1/linux-amd64",
expected: pkg.Package{