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

Link template drops leading zeros in semver placeholders

Open jrbarronumd opened this issue 11 months ago • 2 comments

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

jrbarronumd avatar Mar 12 '24 13:03 jrbarronumd

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}

Big-Gremlin avatar Apr 06 '24 12:04 Big-Gremlin

@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}

KalyaSc avatar Aug 19 '24 14:08 KalyaSc