-
Notifications
You must be signed in to change notification settings - Fork 47
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
Old tag is selected when two tags reference same commit #48
Comments
Interesting - I thought I'd checked this case, but clearly not, sorry. You at Scala World, Olaf? Could see to fix it then (me/you/together). |
Yes, I'll be there! Sounds like a good bugfix for the SC Spree 😄 |
Is there any progress on that issue ? Ideally we would like to have this fantastic plugin to choose the most recent tag. Or just the most recent version (v0.0.6 instead of v0.0.5 for instance) by simple string comparison maybe ? |
I've not had a chance to look at this. Contributions welcome if they catch your fancy. |
Everything comes from one invocation of Ideally there would be a flag for that that deals with this edge-case. For testing (e.g to TDD your way to a solution) you could look to create a test similar to https://github.com/dwijnand/sbt-dynver/blob/v2.0.0/src/test/scala/sbtdynver/GH007.scala. |
Hey @olafurpg, I tried to reproduce this, but couldn't:
Then I found this in the "SEARCH STRATEGY" section of
(https://www.kernel.org/pub/software/scm/git/docs/git-describe.html#_search_strategy) Initially I thought that the problem was that my reproduction wasn't faithfully reproducing the tag dates. Instead it looks like the issue is that the v2.0.0 tag of Scalameta is a lightweight tag, while v2.0.0-RC3 is a proper annotated tag:
I assume the tag was created with the GitHub Releases UI. By default Unfortunately it doesn't look like there is a flag to make Running out of ideas I'm going to close this, but please comment if you have any ideas or thoughts. |
Interesting. Thanks for digging into this @dwijnand I did indeed publish v2.0.0 from the GitHub release UI and iirc I tagged v2.0.0-RC3 locally. I didn't know about lightweight vs. annotated tags. Totally fine to close this issue then 👍 |
We were just releasing scalameta v2.0.0 (🎉 ) and the v2.0.0 tag points to the same commit as the v2.0.0-RC3 tag, which we released a few days ago. sbt-dynver selected the version v2.0.0-RC3 when we pushed the v2.0.0 tag, see https://travis-ci.org/scalameta/scalameta/jobs/274261204#L671, causing publish to fail.
I expected the version number to be 2.0.0.
The text was updated successfully, but these errors were encountered: