Skip to content

Need more sustainable way of managing platform specific paths #3012

Closed

Description

@sipsma

As dealt with in this PR, when you use path/filepath you end up with platform specific formatting, such as for windows. Whether we actually want that is highly dependent on the use case though:

  1. We do want that when we are formatting paths that refer to the client filesystem (may be linux, macos, or windows)
  2. We don't want that when we are formatting paths that refer to filesystems running inside a container (always linux, at least for the foreseeable future)

It's possible to use filepath for the first case and path for the second, but remembering that and enforcing it is really tricky. Tests help a lot of course, but maybe having our own packages that contain path formatting utils (which wrap the underlying ones) would be more sustainable.

Activity

  1. added this to the Cloak GA milestone on Sep 16, 2022
  2. transferred this issue fromdagger/cloakon Sep 16, 2022
  3. added
    area/engine
    and removed on Dec 5, 2022
  4. removed this from the v0.3.0 milestone on Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/engine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions