Working/repo directories with named configuration throw warning #1810
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When specifying a named configuration, and the working directory and repository root are the same, do not throw a warning.
For example, my repo root is
c:\projects\repoMy named config is at
c:\projects\repo\myConfig.ymlWhen running this command, from the repo root:
dotnet gitversion /config myConfig.ymlA warning is thrown, and versioning fails.
Additionally, the
TestFileSystemabstraction was broken, causing one of my tests to erroneously pass. This is due to:a) it isn't case insensitive
b) doesn't resolve/nomalize pathing constructs
I've only updated the
GitVersionCore.Testscopy. Let me know if you'd like me to fix the other copies of this. Ultimately, it would be better to go with a well-supported library for this, likeSystem.IO.AbstractionsFixes #1808.