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]: Overrideconfig for strategies returns 'unknown key' error #4329

Open
2 tasks done
ohlrogge opened this issue Nov 22, 2024 · 0 comments
Open
2 tasks done

[ISSUE]: Overrideconfig for strategies returns 'unknown key' error #4329

ohlrogge opened this issue Nov 22, 2024 · 0 comments

Comments

@ohlrogge
Copy link

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.5+Branch.main.Sha.c78e7a3f34e0afe6ca0a3b4a03218f1b1280d434

Operating system

Windows

What are you seeing?

Hi there,
when I want to override the config for strategies I receive the following error:

Unhandled exception. GitVersion.WarningException: Could not parse /overrideconfig option: strategies=mainline. Unsupported 'key'.
   at GitVersion.ArgumentParser.ParseOverrideConfig(Arguments arguments, IReadOnlyCollection`1 values) in /_/src/GitVersion.App/ArgumentParser.cs:line 463

What is expected?

I expect to be able to pass in the strategies as array. Later I want to override my config using the azure pipelines task.

Steps to Reproduce

I run the following command on my main branch:

gitversion . /output json /output buildserver /overrideconfig mode=ContinuousDelivery /overrideconfig major-version-bump-message="^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([\w\s,\/\\-]*\))?(!:|:.*\n\n((.+\n)+\n)?BREAKING CHANGE:\s.+)" /overrideconfig minor-version-bump-message="^(feat)(\([\w\s,\/\\-]*\))?:" /overrideconfig patch-version-bump-message="^(build|chore|ci|docs|fix|perf|refactor|revert|style|test)(\([\w\s,\/\\-]*\))?:" /overrideconfig strategies=mainline

RepositoryFixture Test

No response

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

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