mirror of
https://github.com/moby/moby.git
synced 2026-07-11 18:13:57 +00:00
The existing code does not correctly handle the case where a file matches one of the patterns, but should not match overall because of an exclude pattern that applied to a parent directory (see https://github.com/docker/buildx/issues/850). Fix this by independently tracking the results of matching against each pattern. A file should be considered to match any pattern that matched a parent dir. Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
This code provides helper functions for dealing with archive files.