mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 07:26:34 +01:00
Add Erlang OTP Application cataloger (#2403)
* Add cataloger for Erlang OTP applications Signed-off-by: Laurent Goderre <laurent.goderre@docker.com> * Add OTP Package type and Purl for ErLang Signed-off-by: Laurent Goderre <laurent.goderre@docker.com> * remove erlang OTP metadata type Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * use OTP purl type Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * restore otp fixture and adjust tests for dir-only results Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Laurent Goderre <laurent.goderre@docker.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
co-authored by
Alex Goodman
parent
3023a5a7bc
commit
d7b9cc70b0
@@ -80,7 +80,7 @@ func LanguageByName(name string) Language {
|
||||
return Rust
|
||||
case packageurl.TypePub, string(DartPubPkg), string(Dart):
|
||||
return Dart
|
||||
case packageurl.TypeDotnet, packageurl.TypeNuget:
|
||||
case string(Dotnet), ".net", packageurl.TypeNuget:
|
||||
return Dotnet
|
||||
case packageurl.TypeCocoapods, packageurl.TypeSwift, string(CocoapodsPkg), string(SwiftPkg):
|
||||
return Swift
|
||||
@@ -88,7 +88,7 @@ func LanguageByName(name string) Language {
|
||||
return CPP
|
||||
case packageurl.TypeHackage, string(Haskell):
|
||||
return Haskell
|
||||
case packageurl.TypeHex, "beam", "elixir", "erlang":
|
||||
case packageurl.TypeHex, packageurl.TypeOTP, "beam", "elixir", "erlang":
|
||||
// should we support returning multiple languages to support this case?
|
||||
// answer: no. We want this to definitively answer "which language does this package represent?"
|
||||
// which might not be possible in all cases. See for more context: https://github.com/package-url/purl-spec/pull/178
|
||||
|
||||
Reference in New Issue
Block a user