Skip to content

Commit

Permalink
case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverchang committed Oct 31, 2023
1 parent 0546782 commit 83e6a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/osvscanner/osvscanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func scanDir(r reporter.Reporter, query *osv.BatchedQuery, dir string, skipGit b
}

if info.IsDir() && !compareOffline {
if _, ok := vendoredLibNames[filepath.Base(path)]; ok {
if _, ok := vendoredLibNames[strings.ToLower(filepath.Base(path))]; ok {
err := scanDirWithVendoredLibs(r, query, path)
if err != nil {
r.PrintText(fmt.Sprintf("scan failed for dir containing vendored libs %s: %v\n", path, err))
Expand Down

0 comments on commit 83e6a4f

Please sign in to comment.