Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AkihiroSuda opened this issue Nov 23, 2022 · 0 comments
Open

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

AkihiroSuda opened this issue Nov 23, 2022 · 0 comments

Comments

@AkihiroSuda
Copy link
Member

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant