-
Prerequisites
GitVersion packageGitVersion.Tool GitVersion version6.0.0-beta.6 Operating systemLinux, Windows What are you seeing?Could not build the configuration instance because following exception occurred: 'Requested value 'Mainline' was not found.' Please ensure that the /overrideconfig parameters are correct and the configuration file is in the correct format. What is expected?Previous builds on 6.0.0-beta.5 had no issues and something like: Steps to Reproducedotnet tool update --global GitVersion.Tool --prerelease
dotnet-gitversion /config .\GitVersion.v6.yml using this config: mode: Mainline
update-build-number: false
branches:
main:
regex: ^master$|^main$
feature:
regex: ^feature(s)?[/-]
label: 'beta'
increment: minor
mode: ContinuousDeployment
hotfix:
regex: ^(hot|bug)?fix(es)?[/-]
label: 'beta'
increment: Patch
mode: ContinuousDeployment
release:
regex: ^releases?[/-]
label: rc
mode: ContinuousDeployment
pull-request:
regex: ^(pull|pull\-requests|pr)[/-]
label: alpha
dependabot:
mode: ContinuousDelivery
regex: ^dependabot?[/-]
source-branches: ['feature','main','hotfix','dependabot']
label: 'alpha'
increment: Patch
ignore:
sha: [] RepositoryFixture TestNo response Output log or link to your CI build (if appropriate).No response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
@HHobeck can you check this one? |
Beta Was this translation helpful? Give feedback.
-
The Mainline mode is deprecated and has been removed in version 6.0.0-beta.6. In the breaking change documentation you will find the following:
Please use the trunk based workflow instead. See https://github.com/GitTools/GitVersion/blob/main/docs/input/docs/reference/configuration.md |
Beta Was this translation helpful? Give feedback.
-
I optimistically tried simply changing mode:
That did not work. Then I tried to run init which threw an exception. Could someone please drop a hint what a simple GitVersion.yml looks like with TrunkBased activated. |
Beta Was this translation helpful? Give feedback.
The Mainline mode is deprecated and has been removed in version 6.0.0-beta.6.
In the breaking change documentation you will find the following:
Please use the trunk based workflow instead.
See https://github.com/GitTools/GitVersion/blob/main/docs/input/docs/reference/configuration.md