Skip to content
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

Remove PackageTypes from the match.Matcher interface #2493

Open
kzantow opened this issue Feb 28, 2025 · 0 comments
Open

Remove PackageTypes from the match.Matcher interface #2493

kzantow opened this issue Feb 28, 2025 · 0 comments
Milestone

Comments

@kzantow
Copy link
Contributor

kzantow commented Feb 28, 2025

During the recent v6 refactoring, investigation of the matching processes led me to believe that matchers should not be directly tied to specific package types. An example of something that causes issues is golang, where go modules should be matched one way, but go stdlib should fall though to standard matching. The stock matcher, for example, could be configured to skip CPE matching for certain types, rather than requiring effectively duplicating the stock matcher to specific package type matchers only to configure them separately.

@kzantow kzantow added this to the Grype 1.0 milestone Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant