fix: Improve detection of erlang binary in alpine Linux (#3839)

Signed-off-by: Oleksandr Vodotiiets <alex.vodotiiets@gmail.com>
Signed-off-by: Oleksandr Vodotiiets <61548316+avodotiiets@users.noreply.github.com>
This commit is contained in:
Oleksandr Vodotiiets
2025-04-30 18:50:12 +00:00
committed by GitHub
parent 09c3b7cbea
commit 78ef2cf53b
4 changed files with 23 additions and 0 deletions
@@ -1067,6 +1067,17 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
Metadata: metadata("erlang-alpine-binary"),
},
},
{
logicalFixture: "erlang/26.1.2/linux-arm64",
expected: pkg.Package{
Name: "erlang",
Version: "26.1.2",
Type: "binary",
PURL: "pkg:generic/erlang@26.1.2",
Locations: locations("beam.smp"),
Metadata: metadata("erlang-alpine-binary"),
},
},
{
logicalFixture: "swipl/9.3.8/linux-amd64",
expected: pkg.Package{