Skip to content

(#3858, #3859) Made PathCollapser aware of different formats#3865

Merged
devlead merged 1 commit into
cake-build:developfrom
nils-a:bugfix/GH-3858
Apr 14, 2022
Merged

(#3858, #3859) Made PathCollapser aware of different formats#3865
devlead merged 1 commit into
cake-build:developfrom
nils-a:bugfix/GH-3858

Conversation

@nils-a

@nils-a nils-a commented Apr 7, 2022

Copy link
Copy Markdown
Member

Especially different calculations of the root of a path
for windows, non-windows and UNC like paths.

To this end, I re-structured the unit test. There were no test
removed that previously existed, but only new tests added.

Also, instead of joining together the path with one specific
separator ('/'), I re-used the existing separator of the original
path. (This was the main-fix for #3859.)

Comment thread src/Cake.Testing.Xunit/WindowsFact.cs
especially different calculations of the root of a path
for windows, non-windows and UNC like paths.

To this end, I re-structured the unit test. There were no test
removed that previously existed, but only new tests added.

Also, instead of joining together the path with one specific
separator ('/'), I re-used the existing separator of the original
path. (This was the main-fix for #3859.)
@devlead devlead enabled auto-merge April 14, 2022 20:19

@devlead devlead left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@devlead devlead merged commit db38c76 into cake-build:develop Apr 14, 2022
@devlead

devlead commented Apr 14, 2022

Copy link
Copy Markdown
Member

@nils-a your changes have been merged, thanks for your contribution 👍

@nils-a nils-a deleted the bugfix/GH-3858 branch April 14, 2022 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PathCollapser.Collapse breaks UNC paths PathCollapser.Collapse shows wrong output for if .. is the second segment in the path

2 participants