You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running the default config and have a tag called "v0.7.4-preview.1". I would expect that the detected semver for this tag would be "0.7.4-preview.1", but the results are instead the above.
Steps to Reproduce
Create a repository with a tag v0.7.4-preview.1 and checkout that tag. Run dotnet gitversion.
RepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).
The text was updated successfully, but these errors were encountered:
First of all I want to say that for me it is not clear:
how your repository looks like
what branch you have used to create the tag
If you checkout a tag then gitversion tries to detect the branch and calculates the next version based on this branch. Normally no branch will be detected if two or more branches are part of the tag (in my opinion this behavior should be changed). Please see the following issue:
Please notice that only this tags are used (by detecting the pre-release number) when the label of the branch matches the pre-release label of the tag. If you want to detect all pre-release tags with different labels on lets say main you need to change the configuration (by setting the label to null):
Prerequisites
GitVersion package
GitVersion.Tool
GitVersion version
6.1.0
Operating system
macOS
What are you seeing?
What is expected?
I'm running the default config and have a tag called "v0.7.4-preview.1". I would expect that the detected semver for this tag would be "0.7.4-preview.1", but the results are instead the above.
Steps to Reproduce
Create a repository with a tag
v0.7.4-preview.1
and checkout that tag. Rundotnet gitversion
.RepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).
The text was updated successfully, but these errors were encountered: