Closed
Description
Describe the bug
When invalid file name passed to the -config
switch (missing file, etc...) no error message is shown and GitVersion silently assumes default configuration.
Expected Behavior
If -config
switch is used and specified file not found an error message should be shown.
Actual Behavior
GitVersion silently assumes default configuration. This breaks the principle of least astonishment and makes it hard to debug issues with configuration, especially in CI.
Steps to Reproduce
The GitVersion will generate version using default configuration if the specified config file doesn't exist.
mkdir ./repro
cd ./repro
git init
dotnet tool install --global GitVersion.Tool
dotnet-gitversion -config foobar.xyz
Your Environment
- Operating System and version:
Windows 10
- GitVesion:
5.7.0+Branch.main.Sha.8d177c6d666c8eeb1c6a6a2c71fd4b78741137d2
I think similar issue related to config file handling was raised already, but unfortunely I can't find it, since config
+ everything that I was able to come up with are too generic terms for GitHub issue search.