Skip to content

Commit

Permalink
fix(go): no lowercase for go packages (#223)
Browse files Browse the repository at this point in the history
* fix(go): no lowercase for go packages

* correct skipping PIP packages
  • Loading branch information
afdesk authored Jun 27, 2022
1 parent 39d8a67 commit 9304617
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/vulnsrc/vulnerability/vulnerability.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ func NormalizePkgName(ecosystem types.Ecosystem, pkgName string) string {
// and MUST consider hyphens and underscores to be equivalent.
pkgName = strings.ToLower(pkgName)
pkgName = strings.ReplaceAll(pkgName, "_", "-")
} else if ecosystem != NuGet { // Nuget is case-sensitive
} else if ecosystem != NuGet && ecosystem != Go {
// Nuget is case-sensitive, Go has case-sensitive packages
pkgName = strings.ToLower(pkgName)
}
return pkgName
Expand Down

0 comments on commit 9304617

Please sign in to comment.