-
Notifications
You must be signed in to change notification settings - Fork 651
Question about asserted version #796
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
Conversation
d1aaffd
to
6fa276f
Compare
@JakeGinnivan I wanted to follow up with a conversation that we were having in Gitter: https://gitter.im/GitTools/GitVersion?at=56c731e2833e58f50fb02b46 When I started digging into the code, I saw that you have a Test that covers the scenario that I was trying to describe, namely a release branch, with no commits, which is merged to Master, but not back to develop, as it is not required. In the test, once you checkout the develop branch, you immediately do a commit, which results in the correct version number. However, if you don't first do a commit, then you get an invalid version number. Is this expected? I would have thought that this should have asserted What do you think? |
@JakeGinnivan just wanted to touch base to see if you had any thoughts on this one? Thanks! |
It is not expected and it probably should be a scenario which is fixed. Haven't had a chance to look into reasons why it doesn't work or give theorys why its failing though. |
Had a quick look into it, unfortunately the track merge targets part of GitVersion is something I don't quite understand :) Here are the logs from before/after
So just need to figure out how we can make the merge tracking branch target thingo pick up that tag when develop has not moved on |
@JakeGinnivan thanks for starting to look at this! |
Ok, so I can give you a real answer now that I have changed the way this works in #832 The reason it will not bump is because the tag is made after the commit. We only include tags made before the commit which we are calculating are made. I have now removed that check so all tags on master affect develop. This does mean that develop can jump based on other things happening, so rebuilds can change versions which doesn't happen on other branches. |
@JakeGinnivan ok, understood. Thanks for digging into this! |
No description provided.