-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Wrong git describe
version is being chosen
#161
Comments
Note that I had a bunch of tags all pointing to the same commit. At some point this broke |
Test for this case found here: haavardw@b72d9d1 Note that the current behavior is different from what As far as I can see this is caused by using JGit as the git-reader and JGit returns the first matching tag not considering time of creation. |
@haavardw Thank you for reproducing the issue. The documentation mentions that if I do not have |
Yes, I believe the only thing you change with that setting is the git
client being used when using git in the sbt console, not the client being
used internally by sbt-git. My impression so far at least.
…On Tue, Sep 4, 2018, 17:03 Michael Rubin ***@***.***> wrote:
@haavardw <https://github.com/haavardw> Thank you for reproducing the
issue. The documentation <https://github.com/sbt/sbt-git#using-jgit>
mentions that if I do not have git available, I can specify useJGit. I am
not doing this. I have git available. Are you suggesting that JGit is
still being used under the hood?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#161 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAF2Hkj-VbWFYcOmJFhvWrp33sNaWVTBks5uXpY1gaJpZM4WKvcr>
.
|
Hi @haavardw, I just ran into this again and this time I am unable to get past the issue. Any luck with further investigations of this issue? |
Sorry @mrubin, I haven't had time to look further into it. We're getting hit by this quite frequently now, so we need to prioritize it soon though.. |
@haavardw thank you - the behavior is really inconsistent. We just ran into an issue (trying to deploy to prod, of course) where the wrong version got picked. The version was 1.20. We tried the build again - this time the git version was 1.21 and that went through. It seems like the plugin has issues with multiples of 10.... |
Is this fixed by #162 ? I think it is but maybe it is a different case? |
#162 is wrong behavior in the sense that it is different than |
Actually #162 doesn't really work unless the multiple tags are on HEAD so I think it should be reverted. I've pushed fixes to jgit here https://github.com/eclipse/jgit/pull/78, but nobody seems to be picking it up.. I'll try to follow up. |
Hey guys, does this help at all: in brief, if you don't use the |
@lJoublanc Thank you for the gotcha - I did come across the same information at some point and I do happen to use |
jgit has the fix included in 5.2.0 (https://projects.eclipse.org/projects/technology.jgit/releases/5.2.0). I expect it to be included in the next 4.11 release as well. |
same issue here. running "git describe" returns the correct version |
The fix for now is to use the actual git describe
|
Can you try and add this |
This did not work for me |
With this upgrade we could fix sbt#161
With this, we could fix sbt#161
I am trying the following build settings:
Everything was working as expected for several versions (i.e. 1.5, 1.6, 1.7, 1.8, 1.9). As soon as I bumped my tag to "1.10", the detected version got stuck on "1.9". I bumped the tag to "1.11", the version I'm getting from sbt-git is still "1.9".
git describe
in both the project directory and via the sbt shell is showing me "1.11".How can I debug this?
The text was updated successfully, but these errors were encountered: