-
Notifications
You must be signed in to change notification settings - Fork 651
release branch without commits #1622
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
Comments
@Ozzian I can confirm that I'm noticing the same behavior: GitVersion seems to miscalculate the version number on branches without commits. In this screenshot from AppVeyor, you can see that the version of my build on What's even more bizarre is that the previous build was I'm using GitVersion.CommandLine version 5.0.0-beta2-97 |
Looking at my build log (which is available here), I see the following two intriguing entries:
|
@Ozzian I notice that in your unit test you are tagging your latest commit. I think this might explain why GitVersion is not calculating the version as you expect. From the
But that doesn't explain why the version is not calculated as expected in my scenario. |
I have another example: As you can see, the build of branch Here is my
|
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions. |
I was investigating why my master branch had "alpha" tag and I found out that I wasn't using --no-ff switch, but that is not all...
There release branch is getting its semver calculated from the previous tag. I've understood from the documentation that the release-branch will calculate its own "beta" versions by default. That is not the case when the release branch doesn't contain any commits.
Test case for this:
The line of code that is returning the "false" semver is here
Related issue: #1289
The text was updated successfully, but these errors were encountered: