8000 fix: only fallback to language if language is non-blank by willmurphyscode · Pull Request #2621 · anchore/grype · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: only fallback to language if language is non-blank #2621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 25, 2025

Conversation

willmurphyscode
Copy link
Contributor

Fixes #2618

Keeps #2608 fixed

Basically, update the logic so that we search by the Syft package type if it's non-blank and known, then by language if it's non-blank, then by "UnknownPkg" if the language is blank. #2608 was because we weren't searching by a non-blank language when the package type was "UnknownPkg" and #2618 was because we were searching by a blank language instead of "UnknownPkg".

I'll add some unit tests after I check with the team that this approach makes sense.

Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
8000
@wagoodman wagoodman marked this pull request as ready for review April 25, 2025 12:48
@wagoodman wagoodman marked this pull request as draft April 25, 2025 12:48
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
@willmurphyscode willmurphyscode marked this pull request as ready for review April 25, 2025 13:53
@wagoodman wagoodman enabled auto-merge (squash) April 25, 2025 13:53
@wagoodman wagoodman merged commit 41a6196 into main Apr 25, 2025
12 checks passed
@wagoodman wagoodman deleted the fix-fallback-on-blank-lang branch April 25, 2025 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Various false positives starting with 0.91.1
2 participants
0