tagcmp maybe thinks 0.38.6-1 is newer than 0.39.2-2 #22

Open
opened 2026-03-05 04:08:01 +00:00 by 3wordchant · 2 comments
Owner
abra-release recipe upgrade federatedwiki -d
DEBU <cli/run.go:137> abra version: 0.13.0-beta, commit: 06a57ded, lang: en
DEBU <git/branch.go:99> successfully checked out refs/heads/main in /home/user/.abra/catalogue
DEBU <catalogue/catalogue.go:84> fetched latest git changes for /home/user/.abra/catalogue
DEBU <recipe/recipe.go:406> read recipe catalogue from file system cache in /home/user/.abra/catalogue/recipes.json
...
DEBU <git/branch.go:99> successfully checked out refs/heads/main in /home/user/.abra/recipes/federatedwiki
DEBU <recipe/git.go:284> fetched latest git changes for federatedwiki
DEBU <recipe/upgrade.go:124> did not find versions file for federatedwiki
DEBU <recipe/upgrade.go:144> retrieved [0.38.3-1 0.38.5-1 0.38.5-2 0.38.6-1 0.38.6-2 0.39.2-2 latest] from remote registry for wiki-cafe/fedwiki-oci-image
DEBU <recipe/upgrade.go:163> parsed 0.38.6-1 for app
DEBU <recipe/upgrade.go:177> detected potential upgradable tags [] for app
INFO <recipe/upgrade.go:182> no new versions available for wiki-cafe/fedwiki-oci-image, assuming 0.38.6-1 is the latest (use -a/--all-tags to see all anyway)
...
``` abra-release recipe upgrade federatedwiki -d DEBU <cli/run.go:137> abra version: 0.13.0-beta, commit: 06a57ded, lang: en DEBU <git/branch.go:99> successfully checked out refs/heads/main in /home/user/.abra/catalogue DEBU <catalogue/catalogue.go:84> fetched latest git changes for /home/user/.abra/catalogue DEBU <recipe/recipe.go:406> read recipe catalogue from file system cache in /home/user/.abra/catalogue/recipes.json ... DEBU <git/branch.go:99> successfully checked out refs/heads/main in /home/user/.abra/recipes/federatedwiki DEBU <recipe/git.go:284> fetched latest git changes for federatedwiki DEBU <recipe/upgrade.go:124> did not find versions file for federatedwiki DEBU <recipe/upgrade.go:144> retrieved [0.38.3-1 0.38.5-1 0.38.5-2 0.38.6-1 0.38.6-2 0.39.2-2 latest] from remote registry for wiki-cafe/fedwiki-oci-image DEBU <recipe/upgrade.go:163> parsed 0.38.6-1 for app DEBU <recipe/upgrade.go:177> detected potential upgradable tags [] for app INFO <recipe/upgrade.go:182> no new versions available for wiki-cafe/fedwiki-oci-image, assuming 0.38.6-1 is the latest (use -a/--all-tags to see all anyway) ... ```
3wordchant added the
bug
question
labels 2026-03-05 04:08:01 +00:00
decentral1se changed title from tagcmp maybe thinks 0.38.6-1is newer than 0.39.2-2 to tagcmp maybe thinks 0.38.6-1 is newer than 0.39.2-2 2026-03-05 08:39:03 +00:00
Owner

I think you would need to implement a specific parser for this versioning scheme. I believe tagcmp doesn't know what -1 and -2 are? Maybe it's sees 2 and thinks that it is newer?

It should probably explode but maybe it slips through. Getting a reproduction going via the unit tests would be a good place to start: https://git.coopcloud.tech/toolshed/tagcmp/src/branch/main/tagcmp_test.go

Related docs: https://git.coopcloud.tech/toolshed/tagcmp#types-of-versions-not-supported

I think you would need to implement a specific parser for this versioning scheme. I believe `tagcmp` doesn't know what `-1` and `-2` are? Maybe it's sees `2` and thinks that it is newer? It should probably explode but maybe it slips through. Getting a reproduction going via the unit tests would be a good place to start: https://git.coopcloud.tech/toolshed/tagcmp/src/branch/main/tagcmp_test.go Related docs: https://git.coopcloud.tech/toolshed/tagcmp#types-of-versions-not-supported
Owner

abra recipe upgrade -h says this:

Some image tags cannot be parsed because they do not follow some sort of
semver-like convention. In this case, all possible tags will be listed and it
is up to the end-user to decide.

`abra recipe upgrade -h` says this: > Some image tags cannot be parsed because they do not follow some sort of semver-like convention. In this case, all possible tags will be listed and it is up to the end-user to decide.
Sign in to join this conversation.
No description provided.