mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 15:36:41 +01:00
fix: PURLs with "nuget" type are dotnet packages (#2466)
Otherwise, Grype won't match on well-formed .NET purls from other SBOM tools. Signed-off-by: Will Murphy <will.murphy@anchore.com>
This commit is contained in:
@@ -80,7 +80,7 @@ func LanguageByName(name string) Language {
|
||||
return Rust
|
||||
case packageurl.TypePub, string(DartPubPkg), string(Dart):
|
||||
return Dart
|
||||
case packageurl.TypeDotnet:
|
||||
case packageurl.TypeDotnet, packageurl.TypeNuget:
|
||||
return Dotnet
|
||||
case packageurl.TypeCocoapods, packageurl.TypeSwift, string(CocoapodsPkg), string(SwiftPkg):
|
||||
return Swift
|
||||
|
||||
Reference in New Issue
Block a user