-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Wrong GitHub tag is shown #490
Comments
Thanks for raising this! One of the tags is |
Ah, I see... that's from before we followed semver. In this case (and most cases I'd imagine?) simply using the most recent tag would work just fine. That's how I thought it works until now, actually. Different urls to deal with different versioning schemes would be another option.. tag/latest, tag/semver etc.. that might overcomplicate it though? |
Hehe, it worked that way until someone told us that they had the wrong version on their badge… They had made a 3.2.14, then a 3.3.0, then a 3.3.1, then performed a bugfix patch tagged 3.2.15. The use of a different URL is an interesting idea. It is an issue for all badges dealing with versions, though. |
We have the same issue here: ![Latest Release](https://img.shields.io/github/tag/robotology/yarp.svg?label=Latest Release)
|
@drdanz We filter out things that don't look like a version. In your case, you have a non-semver |
I intend to switch to a simplified three-tier version analysis: semver / a custom dotted-version comparator / ASCII. The ASCII tier will no longer have non-versions filtered out, while the new custom dotted-version will use integer list comparison (and trailing data ASCII comparison for the (It is irrelevant for #261, which now uses the PHP algorithm. The same goes for #377, which uses GitHub's /latest version.) |
This repo uses this badge:
It shows the latest version as
3.3.9
, even though the latest tag / most recent version is3.3.11
.I suspect this might be caused by the double digit patch number.
The text was updated successfully, but these errors were encountered: