Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion syft/pkg/language.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func LanguageByName(name string) Language {
return Dart
case string(Dotnet), ".net", packageurl.TypeNuget:
return Dotnet
case packageurl.TypeCocoapods, packageurl.TypeSwift, string(CocoapodsPkg), string(SwiftPkg):
case packageurl.TypeCocoapods, packageurl.TypeSwift, string(CocoapodsPkg):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the slate of PRs @testwill - I'll take some time today to validate these today. I'm trying to figure out why this was duplicated in the first place:

// TypeCocoapods is a pkg:cocoapods purl.
--
66 | TypeCocoapods = "cocoapods"
CocoapodsPkg          Type = "pod"]

Looks like these are two different strings here so it's not a duplicate case =)

Thanks for the due diligence on checking this though.

Closing for now given the different names.

If you think this could be clearer let me know and I can reopen and we can figure out what the chance should be

Copy link
Copy Markdown
Contributor

@spiffcs spiffcs Mar 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 - my fault I totally switched gears and looked at the wrong value change - this is good to go!

https://github.com/package-url/packageurl-go/blob/7cb81af9593b9512bb946c55c85609948c48aab9/packageurl.go#L114

SwiftPkg Type = "swift"

Same string

return Swift
case packageurl.TypeConan, string(CPP):
return CPP
Expand Down