Skip to content

copy: log changes made by copy#113

Merged
tonistiigi merged 1 commit intomasterfrom
tonistiigi/copy-notify
Oct 28, 2021
Merged

copy: log changes made by copy#113
tonistiigi merged 1 commit intomasterfrom
tonistiigi/copy-notify

Conversation

@tonistiigi
Copy link
Owner

This allows capturing changes made by copy so that buildkit diff can ignore the parent directories when layer blobs are created.

@sipsma

Was wondering if all parent should be ignored or only when parent directory existed. Went with the former for now. In buildkit that would mean that in some cases (eg. --chown/--chmod) parent dir needs to be manually created before copy. Same question about includepatterns that is little more tricky as parents of the patterns can't be predicted outside of the copy.

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

Copy link
Contributor

@sipsma sipsma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was wondering if all parent should be ignored or only when parent directory existed. Went with the former for now

That makes sense to me and seems to fit what we want for the cases you brought up in the other issue.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi tonistiigi force-pushed the tonistiigi/copy-notify branch from a3b50f8 to a1fafbb Compare October 15, 2021 01:28
@tonistiigi tonistiigi merged commit 705740d into master Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants