Skip to content

standardize absolute path spec #84

Open

Description

@AkihiroSuda

#82 (comment)

  • should we use / separator on both Unix and Windows?
  • "absolute path" does not contain drive letter (C:), right?

Activity

  1. AkihiroSuda commented on Jul 19, 2017

    @AkihiroSuda
    MemberAuthor
  2. stevvooe commented on Jul 19, 2017

    @stevvooe
    Member

    @AkihiroSuda I am not sure. What will work for windows?

  3. AkihiroSuda commented on Jul 20, 2017

    @AkihiroSuda
    MemberAuthor

    So, a manifest will contain paths like /Program Files/Foo/Bar.
    When it is applied on C:, the path will be treated as C:\Program Files\Foo\Bar

  4. stevvooe commented on Jul 20, 2017

    @stevvooe
    Member

    For manifests, they usually target a single platform, so having OS specific paths seems fine, which means we can avoid the conversion.

  5. dmcgowan commented on Jul 21, 2017

    @dmcgowan
    Member

    @AkihiroSuda do you know if \Program Files\Foo\Bar is considered a valid absolute path on Windows?

    The advantage I see of using / for both Windows and Linux is that some content may not target a single platform, making it the responsibility of the unpacker to correctly interpret and convert the separator. As soon as the unpacker is doing some interpretation, it is allowing multiple forms for the same content which is against the design goals of continuity.

  6. stevvooe commented on Jul 29, 2017

    @stevvooe
    Member

    @tonistiigi PTAL

    I think we should probably standardize on unix-style paths. In general, the manifests should be relocatable.

  7. stevvooe commented on Feb 2, 2018

    @stevvooe
    Member

    @AkihiroSuda Are we good on this? What are the next steps?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions