-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix(repology): Properly handle of response with multiple package versions #8489
fix(repology): Properly handle of response with multiple package versions #8489
Conversation
…ions (#8482) Some repos produce multiple versions, and while not all of them can be downloaded, it should not result in invalid result at all. Instead all found versions that match criteria should be returned from data source just like in more regular one like npm or maven
…ions (#8482) cleaned up tests and snapshot expectations
@danez could you also add your review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked the API and it indeed returns multiple versions for the same exact package. So overall this sounds good. Added one minor comment and another question about the caching which I'm not sure it will work.
Co-authored-by: Daniel Tschinder <duck+github@mailbox.org>
Can someone test this on a real repo first before we merge? |
@rarkins are you looking for real project or test repository showing that change works properly will do? |
Test repository is fine, as long as it validates both list and non-list return types |
@rarkins test repository - https://github.com/zeldigas/renovate-repology It has 2 packages to update - version of jdk in alpine (worked prior to PR as repology returns one version) and version of jdk for centos_8 (does not work without PR). Right now it works (see associated PRs). Log can be found here: https://pastebin.com/FMTLW4JZ |
Thanks, @zeldigas |
🎉 This PR is included in version 24.35.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes:
Some repos available in repology api produce multiple versions, and while not all of them can be downloaded, it should not result in invalid result at all. Instead all found versions that match criteria should be returned from data source just like in more regular one like npm or maven.
This change adjust handling of multiple returned versions and produce all of them as result after filtering by repo and package types
Context:
Closes #8482
Documentation (please check one with an [x])
How I've tested my work (please tick one)
I have verified these changes via: