8000 fix: emit fuzzy ranges rather than invalid ranges by willmurphyscode · Pull Request #574 · anchore/grype-db · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: emit fuzzy ranges rather than invalid ranges #574

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
May 12, 2025

Conversation

willmurphyscode
Copy link
Contributor

Previously, if upstream data contained invalid version ranges for the ecosystem, e.g. pip packages that do not have a PEP440 compliant version, grype db would just emit a version constraint that couldn't be parsed at runtime. Instead, emit a verion constraint of type "unknown" to signal to grype that the fuzzy version matcher should be used in this case.

Note: this depends on changes made in anchore/grype#2651

Previously, if upstream data contained invalid version ranges for the
ecosystem, e.g. pip packages that do not have a PEP440 compliant
version, grype db would just emit a version constraint that couldn't be
parsed at runtime. Instead, emit a verion constraint of type "unknown"
to signal to grype that the fuzzy version matcher should be used in this
case.

Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
Copy link
Contributor
@wagoodman wagoodman left a comment

Choose a reason for hiding this comment

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

needs to bump grype too to compile

Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
@willmurphyscode willmurphyscode merged commit 0746021 into main May 12, 2025
11 checks passed
@willmurphyscode willmurphyscode deleted the fuzzy-on-invalid-versions branch May 12, 2025 10:24
@wagoodman wagoodman added the bug Something isn't working label May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0