1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/fileutils
Aaron Lehmann 4555d3aa54 pkg/fileutils: Track incremental pattern match results against each pattern
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>
2021-11-19 15:58:13 -08:00
..
fileutils.go pkg/fileutils: Track incremental pattern match results against each pattern 2021-11-19 15:58:13 -08:00
fileutils_darwin.go Add canonical import comment 2018-02-05 16:51:57 -05:00
fileutils_test.go pkg/fileutils: Track incremental pattern match results against each pattern 2021-11-19 15:58:13 -08:00
fileutils_unix.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
fileutils_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00