feat: add support for conan packages (C/C++) (#1083)

This commit is contained in:
cpendery
2022-07-05 10:49:24 -04:00
committed by GitHub
parent 6b28a46ebe
commit 57323a1666
19 changed files with 299 additions and 2 deletions
+4
View File
@@ -21,6 +21,7 @@ const (
Rust Language = "rust"
Dart Language = "dart"
Dotnet Language = "dotnet"
CPP Language = "c++"
)
// AllLanguages is a set of all programming languages detected by syft.
@@ -34,6 +35,7 @@ var AllLanguages = []Language{
Rust,
Dart,
Dotnet,
CPP,
}
// String returns the string representation of the language.
@@ -70,6 +72,8 @@ func LanguageByName(name string) Language {
return Dart
case packageurl.TypeDotnet:
return Dotnet
case packageurl.TypeConan, string(CPP):
return CPP
default:
return UnknownLanguage
}