-
Notifications
You must be signed in to change notification settings - Fork 10
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
miniver does not use latest tag for version #34
Comments
I've seen this and haven't spent enough time to pinpoint. However, I believe it has to do with branches. Possibly the tag was created on a now non-existent branch? |
@kmpf This is probably because you are querying for the version from a commit that does not have the later tags ( If you link to the repo in question and what commit you're pointing at then we can debug further. here's the logic that determines the latest version. We first try
then, if that errored out, we try
The
So as @chinghwayu says this is probably related to having tags that are on different branches. |
Hi, sorry for the late reply. I work on a non-public version, but I tested it with the master of https://github.com/fraunhofer-izi/uap I think the behaviour has to do with the difference in annotated and unannotated tags. After cloning the above mentioned repo I did: $ git describe --long --always --first-parent
a7980c51
$ git describe --long --always
v1.0.3-1413-ga7980c51
$ git describe --long --always --tags
v2.0.0rc2-76-ga7980c51 I don't know which kind if behaviour you want miniver to have. You could provide an option to use unannotated tags, maybe? |
Just realized there already is a patch to add the |
Ah, yes... ran into this as well. What if |
I wanted to use
In this case, I feel like the default approach should be changed, or at least an option to set this should be offered (perhaps as an argument to |
Another issue I came across, was that the version used for the package build by
miniver
was not based on the latest git tag:Given these tags, the resulting package name was:
I have to admit, that the tag names are not that well chosen, but the error still seems strange.
The text was updated successfully, but these errors were encountered: