-
Notifications
You must be signed in to change notification settings - Fork 654
Where the PreReleaseTag number comes from? #1646
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
If only I could use the |
It comes from a tag on the branch. For example you are hacking away on your beta branch getting it ready for release, that beta semver should remain 0.11.0. Up until that point, you are working on 0.11.0-beta.1 When you get to the point where you are going to send that version of the build to someone, you tag that commit "v0.11.0-beta.1". Any commits from that point on will be 0.11.0-beta.2 In other words, PreReleaseNumber is computed from the semver tags for that branch. And note, that the semver computed for the branch must actually match the tag on the branch. In other words, if you tagged it 0.12.0-beta.123 it will not catch it, because you are actually working on 0.11.0. So at the point you want to expose your beta somewhere you could potentially run on the commit you are releasing: |
If I tag a release branch - without the Update: the prefix does not matter. In our case it turned out we did not fetch tags on our build server. A change in the git plugin in jenkins causes this. When we enabled fetching tags it is working as expected |
Thanks. |
this is not working like that starting from version 6? Is-mainline is removed and Is-main-branch also doesnt exist. |
Uh oh!
There was an error while loading. Please reload this page.
Running
gitversion
on my repository returns something like this:After the
beta
prerelease label, comes a1
that I cannot identify where it comes from.Where does it come from?
I am trying to use GitVersion on Azure Devops, but since this
1
never changes, my packages are conflicting.The text was updated successfully, but these errors were encountered: