Closed NicoHood closed 3 years ago
I am not sure if implementing this is useful.
All tags must follow semantic versioning. If not, you will always get a warning. We could add a note on how to disable this warning though.
Version check can be done with sort
and -V
, but that option is only available since a specific sort version. The sort (app itself) version check would be also complicated. I am not sure if that is worth it.
https://stackoverflow.com/questions/4023830/how-to-compare-two-strings-in-dot-separated-version-format-in-bash
Another point against this is, that someone might want to work on multiple branches (stable, dev). It would then always output a warning or people have to always disable it. Makes no sense to have that warning I guess.
This way we could avoid tagging "wrong" releases.
Example: Existing releases: 2.0, 3.0
Trying to tag 2.5