Skip to content

wip: adopt swift-system path #6537

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented May 10, 2023

No description provided.

@@ -38,13 +42,17 @@ public typealias TSCAbsolutePath = TSCBasic.AbsolutePath
/// that evaluates the tilde; the `cd` command receives an absolute path).
public struct AbsolutePath: Hashable, Sendable {
/// Root directory (whose string representation is just a path separator).
public static let root = Self(TSCAbsolutePath.root)
public static let root = Self(FilePath("/"))
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like there's something called FilePath.Root which can also represent the multiple roots on Windows. Seems like we should switch to that, at least eventually.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@compnerd I guess we will need to #if here for windows. what would be the right representation of windows root here?

@tomerd tomerd marked this pull request as draft May 10, 2023 17:08
@tomerd tomerd self-assigned this May 10, 2023
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.

2 participants