Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[ISSUE]: dotnet-gitversion fails using 6.0.0-beta.6 in mainline mode #3947

Closed
2 tasks done
DSpirit opened this issue Mar 9, 2024 · 2 comments
Closed
2 tasks done

Comments

@DSpirit
Copy link
Contributor

DSpirit commented Mar 9, 2024

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.0.0-beta.6

Operating system

Linux, 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:
Begin: Getting tagged semantic versions of mainline branches. Format: Strict...

Steps to Reproduce

dotnet 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 Test

No response

Output log or link to your CI build (if appropriate).

No response

@arturcic
Copy link
Member

arturcic commented Mar 9, 2024

@HHobeck can you check this one?

@HHobeck
Copy link
Contributor

HHobeck commented Mar 9, 2024

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:

The Mainline mode and the related implementation has been removed completely. The new TrunkBased version strategy should be used instead.

Please use the trunk based workflow instead.

See https://github.com/GitTools/GitVersion/blob/main/docs/input/docs/reference/configuration.md

@HHobeck HHobeck closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2024
@GitTools GitTools locked and limited conversation to collaborators Mar 9, 2024
@HHobeck HHobeck converted this issue into discussion #3949 Mar 9, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

3 participants