Skip to content

archive: create parent directory records for diffed files in tar output #1723

@dmcgowan

Description

@dmcgowan

Currently the diff tars produced by the archive package do not include the parent directories with a file has changed. When these tars are imported into AUFS or overlay2 in Docker, the parent directories end up with the default permissions due to direct extraction not allowing copy up of the parent to the occur.

The OCI specification is incomplete in defining this behavior https://github.com/opencontainers/image-spec/blob/master/layer.md

See moby/buildkit#154

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions