Skip to content

Conversation

michaelkedar
Copy link
Member

@michaelkedar michaelkedar commented Sep 17, 2025

The alpine versions seem to be falling back to string comparisons for >=/<=, which is wrong.
This issue is in the univers code we've vendored, which seems to be a bit outdated, but it's still present on their current version

I've added tests to catch this in Alpine and other ecosystems, but APK seems to have been the only ecosystem affected.

@michaelkedar michaelkedar marked this pull request as ready for review September 17, 2025 01:40
self.assertLess(
ecosystem.sort_key('13.0.14.5-r1'), ecosystem.sort_key('16.6-r0'))

# Check >= / <= methods: https://github.com/google/osv.dev/pull/3978
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah yes, the self referential PR.

@michaelkedar michaelkedar merged commit 34a8262 into google:master Sep 17, 2025
18 checks passed
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.

2 participants