whats-up-docker icon indicating copy to clipboard operation
whats-up-docker copied to clipboard

Wrong reporting with old images with higher semver version

Open matheusvellone opened this issue 2 years ago • 2 comments

Thanks for the project, really helpful!

I'm using linuxserver/qbittorrent on DockerHub registry pinned to version 4.6.2, the latest one, but WUD keeps reporting there's a new version 20.04.1 I can see that this version does exists in DockerHub, but it's from 2 years ago.

Screenshots

image image image

Looks like WUD is comparing images using semver logic, but in this case looks like there was a older way to version images, which changed later (maybe).

Maybe it would safer if WUD compares the publish data instead of simple semver logic, but I don't know if this information is available somehow.

matheusvellone avatar Dec 29 '23 06:12 matheusvellone

Unfortunately for you, WUD logic is right in this case. I cannot base the comparison on the "publish date" because some image providers are rebuilding old images after having push newer versions so semver comparison is the most reliable way to compare versions.

The only easy way I see to get around it is to include more precise wud.tag.include or wud.tag.exclude regex to filter these "20.x" false positive matches.

fmartinou avatar Jan 24 '24 11:01 fmartinou

Sure, this is a corner case bc this image switched versioning strategies 😕

I cannot base the comparison on the "publish date" because some image providers are rebuilding old images after having push newer versions so semver comparison is the most reliable way to compare versions.

Indeed, this would cause more trouble. But what if WUD checks both semver AND publish date? Wouldn't this solve this case and avoiding creating a new one? Also, this looks intuitive to me

The only easy way I see to get around it is to include more precise wud.tag.include or wud.tag.exclude regex to filter these "20.x" false positive matches.

Ended up doing this, solved the problem, but if WUD could take care of this kind of problem, this would fell less hacky

matheusvellone avatar Jan 25 '24 12:01 matheusvellone