Skip to content

Find a way to support RUN touch --date=@TIMESTAMP /MOUNT/POINT #3309

@AkihiroSuda

Description

@AkihiroSuda

buildkit/client/client_test.go

Lines 8205 to 8206 in 7e14bbd

// No support for reproducing the timestamps of mount point directories such as var/foo/ and tmp/foo2/bar/,
// because the touched timestamp value is lost when the mount is unmounted.

The timestamp specified in RUN touch is lost when the executor container exits, so it seems hard to retain custom timestamps.

SOURCE_DATE_EPOCH support for mount point dirs (and any arbitrary dirs/files) will be covered in

Originally posted by @AkihiroSuda in #3149 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions