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
+4
View File
@@ -426,6 +426,10 @@ func DefaultClassifiers() []Classifier {
// <artificial>[NUL]/usr/local/src/otp-25.3.2.7/erts/
`(?m)/usr/local/src/otp-(?P<version>[0-9]+\.[0-9]+(\.[0-9]+){0,2}(-rc[0-9])?)/erts/`,
),
FileContentsVersionMatcher(
// [NUL][NUL]26.1.2[NUL][NUL][NUL][NUL][NUL][NUL][NUL]NUL[NUL][NUL]Erlang/OTP
`\x00+(?P<version>[0-9]+\.[0-9]+(\.[0-9]+){0,2}(-rc[0-9])?)\x00+Erlang/OTP`,
),
),
Package: "erlang",
PURL: mustPURL("pkg:generic/erlang@version"),