getwud / wud

WUD (aka What's up Docker?) gets you notified when a new version of your Docker Container is available.
https://getwud.github.io/wud/
MIT License
1.17k stars 38 forks source link

Link template drops leading zeros in semver placeholders #367

Open jrbarronumd opened 7 months ago

jrbarronumd commented 7 months ago

Slowly adding containers to my watchers, and loving this tool - Thank you for sharing!

I'm seeing an issue with the link template on one of my containers. It seems to be working correctly recognizing my container version, and the current release of 2024.02.2. My template and resulting link are below. Not sure if there's something I should be doing differently, or if it is treating the placeholders like integers instead of strings, and dropping the leading zero.

Template: https://github.com/pi-hole/docker-pi-hole/releases/${major}.${minor}.${patch}

Link: https://github.com/pi-hole/docker-pi-hole/releases/2024.2.2

But the link should be: https://github.com/pi-hole/docker-pi-hole/releases/2024.02.2

Big-Gremlin commented 6 months ago

Same problem with jdownloader and bookstack

https://github.com/BookStackApp/BookStack/releases/tag/v24.02.3 https://github.com/jlesage/docker-jdownloader-2/releases/tag/v24.01.1

@jrbarronumd as a workaround for the links you can use #{raw} instead of ${major}.${minor}.${patch}

KalyaSc commented 2 months ago

@Big-Gremlin Thanks for the workaround it works. Just some rectification for those stumbling here:

- wud.link.template=https://github.com/pi-hole/docker-pi-hole/releases/tag/$${raw}