You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First GitVersion invocation (dotnet-gitversion -config custom.yml -diag) will run succefuly and return:
{"Major": 3,"Minor": 2,"Patch": 1,// ...}
The second invocation will fail, since -diag switch is specified first and it'll ignore config file specified via -config and will try to read GitVersiion.yml.
Seems like we don't have a test for -diag at all. I suppose the bug may be that -config is parsed as a value for -diag somehow. It should be fairly easy to test and fix. Are you up for submitting a PR?
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs.
Describe the bug
If
-diag
switch is specified first in commandline arguments, the-config
switch is ignored.Expected Behavior
Order of arguments should not matter.
Actual Behavior
Position of
-diag
switch affects argument parsing:-config
switch is ignored.Steps to Reproduce
First GitVersion invocation (
dotnet-gitversion -config custom.yml -diag
) will run succefuly and return:The second invocation will fail, since
-diag
switch is specified first and it'll ignore config file specified via-config
and will try to readGitVersiion.yml
.Context
It's very hard to try various configurations when order of switches affects result.
Related: #2848
Your Environment
Windows 10
5.7.0+Branch.main.Sha.8d177c6d666c8eeb1c6a6a2c71fd4b78741137d2
The text was updated successfully, but these errors were encountered: