Closed
Description
Prerequisites
- I have written a descriptive issue title
- I have searched issues to ensure it has not already been reported
GitVersion package
GitVersion.Tool
GitVersion version
6.2.0
Operating system
Windows, macOS, Linux
What are you seeing?
Adds a pre-release suffix differently regardless of the operating system:
❯ dotnet-gitversion version
6.2.0+Branch.main.Sha.c2bc09f9ee048c6bdce6ec494fa48cb74420f608
❯ dotnet-gitversion . /config ../common-ci/GitVersion.yml /format '{SemVer}'
5.0.64-1
You can see our GitVersion.yml here: https://github.com/51Degrees/common-ci/blob/main/GitVersion.yml
What is expected?
Previously it was not adding a pre-release suffix:
❯ dotnet-gitversion version
6.1.0+Branch.main.Sha.8856e3041dbb768118a55a31ad4e465ae70c6767
❯ dotnet-gitversion . /config ../common-ci/GitVersion.yml /format '{SemVer}'
5.0.64
We expect it to stay that way.
Steps to Reproduce
Steps are specified above
RepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).
f.e. here: https://github.com/51Degrees/device-detection-nginx/actions/runs/14210425608/job/39816479668#step:5:38
it gets worse on non-main branches:
https://github.com/51Degrees/device-detection-cxx/actions/runs/14209141831/job/39824275265#step:5:35