-
Prerequisites
GitVersion packageGitVersion.Tool GitVersion version6.0.2 Operating systemWindows What are you seeing?In earlier GitVersion releases we had the following workflow: develop: produces alpha releases Version incremention strategies are made through:
This was achieved without any specific GitVersion config. We always used the standard. What is expected?I expect that every commit to the main branch is detected as RTM and not a prerelease version. Regardless of new repos. This also doesn't work anymore on older repos with a big versioning history. It seems like the main branch is not detected properly. (look at screenshots in "Steps to Reproduce") Steps to Reproduce
OR: Here is the output of gitversion /showconfig Which currently leads to the following versioning output: {
"AssemblySemFileVer": "0.0.1.0",
"AssemblySemVer": "0.0.1.0",
"BranchName": "main",
"BuildMetaData": null,
"CommitDate": "2024-09-19",
"CommitsSinceVersionSource": 1,
"EscapedBranchName": "main",
"FullBuildMetaData": "Branch.main.Sha.0ab9e5efc330761e8bb359220505da80e337a0b8",
"FullSemVer": "0.0.1-1",
"InformationalVersion": "0.0.1-1+Branch.main.Sha.0ab9e5efc330761e8bb359220505da80e337a0b8",
"Major": 0,
"MajorMinorPatch": "0.0.1",
"Minor": 0,
"Patch": 1,
"PreReleaseLabel": "",
"PreReleaseLabelWithDash": "",
"PreReleaseNumber": 1,
"PreReleaseTag": "1",
"PreReleaseTagWithDash": "-1",
"SemVer": "0.0.1-1",
"Sha": "0ab9e5efc330761e8bb359220505da80e337a0b8",
"ShortSha": "0ab9e5e",
"UncommittedChanges": 0,
"VersionSourceSha": "",
"WeightedPreReleaseNumber": 55001
} As you can see SemVer/FullSemVer is now 0.0.1-1 and i get a PreReleaseTag. Is this a bug or do i need to explecitly configure this behavior with Gitversion 6? RepositoryFixture TestNo response Output log or link to your CI build (if appropriate).No response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Please create only an issue if you know you have one. Also before posting it would be very decent to read the documentation at https://gitversion.net/.
and
Happy Branching! Edit: Maybe it's good to know what's changed in version 6 compared to version 5 and why it probably behaves differently:
|
Beta Was this translation helpful? Give feedback.
-
@HHobeck Thanks for the response. Sorry for creating an issue. I thought it was an error because of the displayment of "is-main-branch: false". Didn't se its a static config value before. If other find the issue/discussion here: Im going with the following yml for now: branches:
develop:
mode: ContinuousDelivery
main:
mode: ContinuousDeployment
release:
mode: ContinuousDelivery It seems to behave like correctly for my use-cases but i will need to test in the next weeks with my production repos. |
Beta Was this translation helpful? Give feedback.
Please create only an issue if you know you have one. Also before posting it would be very decent to read the documentation at https://gitversion.net/.
Continuous Deployment