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

(#4322) Removed check for OS on PathHelper.IsRooted #4323

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

nils-a
Copy link
Member

@nils-a nils-a commented Aug 3, 2024

This PR removes the check for the currently running platform/OS before checking whether the path is a windows path, beginning with a drive letter.

fixes #4322

Rationale:

I feel Path should be a very agnostic "thing" and C:\temp\ should be a valid (and "absolute") path on any system, even if, if I were to use it on my linux system, it would simply not work. (Probably it would, somehow, but that's besides my point.)

My guess is, that while this is not a breaking change in API/ABI, it is a breaking change in "meaning" - even if I think most likely no-one is relying on the fact that currently C:\temp is an absolute path, if cake is running on a windows system and a relative path if cake is not running on a windows system.

Copy link
Member

@augustoproiete augustoproiete left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@devlead devlead left a comment

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 9463314 into cake-build:develop Sep 26, 2024
14 of 15 checks passed
@devlead
Copy link
Member

devlead commented Sep 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FakeFileSystem throws on linux, when it is created on a Windows FakeEnvironment
3 participants