Skip to content

Introduce Path abstraction #6667

Open
Open
@phadej

Description

@phadej

Like the one already used in hackage-security.

We want to have Absolute rooted Paths, but also more specific like StoreDir, or PackageDir and ProjectDir which all would make handling paths a bit more robust.

It would helped a lot in my recent sdist refactor. Getting relative to PackageDir paths is tricky, not sure if I haven't missed any.

I however suggest to store these (file paths) in native way. (Not in POSIX like paths library does), because I'm quite sure that conversion from Windows to Posix and back won't roundtrip on fancier paths there might be. Therefore we might need separate PosixPath for tarballs etc if we end up needing such notion (and we might, index files...)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions