Skip to content
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]: Unable to maintain version based on conventional commits #4203

Closed
2 tasks done
samtrion opened this issue Sep 9, 2024 · 3 comments
Closed
2 tasks done

[ISSUE]: Unable to maintain version based on conventional commits #4203

samtrion opened this issue Sep 9, 2024 · 3 comments

Comments

@samtrion
Copy link

samtrion commented Sep 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.MsBuild

GitVersion version

6.0.2

Operating system

Linux, Windows

What are you seeing?

dotnet --roll-forward Major C:\Users\user\.nuget\packages\gitversion.msbuild\6.0.2\tools\net8.0\gitversion.dll
INFO [24-09-09 12:02:52:97] Applicable build agent found: 'LocalBuild'.
INFO [24-09-09 12:02:53:01] Working directory: C:\source\logging.xunit
INFO [24-09-09 12:02:53:04] Project root is: C:\source\logging.xunit\
INFO [24-09-09 12:02:53:04] DotGit directory is: C:\source\logging.xunit\.git
INFO [24-09-09 12:02:53:04] Branch from build environment:
INFO [24-09-09 12:02:53:05] Found configuration file at 'C:\source\logging.xunit\GitVersion.yml'
INFO [24-09-09 12:02:53:06] -< Begin: Loading version variables from disk cache file C:\source\logging.xunit\.git\gitversion_cache\4F55028361070C947365F125A373CCF7AF39A2B2 >-
  INFO [24-09-09 12:02:53:06] Cache file C:\source\logging.xunit\.git\gitversion_cache\4F55028361070C947365F125A373CCF7AF39A2B2 not found.
INFO [24-09-09 12:02:53:07] -< End: Loading version variables from disk cache file C:\source\logging.xunit\.git\gitversion_cache\4F55028361070C947365F125A373CCF7AF39A2B2 (Took: 0.92ms) >-
INFO [24-09-09 12:02:53:07] Found configuration file at 'C:\source\logging.xunit\GitVersion.yml'
WARN [24-09-09 12:02:53:19] An error occurred:
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?

Same behaviour as in the previous version 5.12.0

Steps to Reproduce

Upgrade Project (like dailydevops/logging.xunit#64) from 5.12.0 to 6.0.2

RepositoryFixture Test

No response

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

https://github.com/dailydevops/logging.xunit/actions/runs/10771064050/job/29865799341?pr=64
@samtrion
Copy link
Author

samtrion commented Sep 9, 2024

Already tried <GitVersionTargetFramework>

@samtrion
Copy link
Author

samtrion commented Sep 9, 2024

Also tried, from https://gitversion.net/docs/reference/version-increments

mode: MainLine # Only add this if you want every version to be created automatically on your main branch.
major-version-bump-message: "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\([\\w\\s-,/\\\\]*\\))?(!:|:.*\\n\\n((.+\\n)+\\n)?BREAKING CHANGE:\\s.+)"
minor-version-bump-message: "^(feat)(\\([\\w\\s-,/\\\\]*\\))?:"
patch-version-bump-message: "^(fix|perf)(\\([\\w\\s-,/\\\\]*\\))?:"

@samtrion
Copy link
Author

Solved

New configuration is

mode: ManualDeployment
major-version-bump-message: "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\([\\w\\s-,/\\\\]*\\))?(!:|:.*\\n\\n((.+\\n)+\\n)?BREAKING CHANGE:\\s.+)"
minor-version-bump-message: "^(feat)(\\([\\w\\s-,/\\\\]*\\))?:"
patch-version-bump-message: "^(build|chore|ci|docs|fix|perf|refactor|revert|style|test)(\\([\\w\\s-,/\\\\]*\\))?:"
workflow: TrunkBased/preview1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant