kaniko/pkg
Priya Wadhwa 2a359f547c Only return filepath.SkipDir for directories
From the docs on filepath.SkipDir:

> If the function returns SkipDir when invoked on a non-directory file, Walk skips the remaining files in the containing directory

This was causing the bug in #457. Since the file `/etc/hosts` was in the whitelist, when filepath.SkipDir was called the entire etc directory was skipped.

This change only returns filepath.SkipDir on directories.
2018-11-19 15:56:11 -05:00
..
buildcontext Replace gometalinter with GolangCI-Lint 2018-09-11 13:30:42 -07:00
cache More cache cleanups: (#397) 2018-11-01 09:11:21 -07:00
commands Improve cache layer uploads. (#443) 2018-11-12 16:22:04 -06:00
config parse arg commands at the top of dockerfiles (#404) 2018-11-06 15:27:09 -08:00
constants Fix bugs with .dockerignore and improve integration test 2018-10-31 12:50:23 -07:00
dockerfile parse arg commands at the top of dockerfiles (#404) 2018-11-06 15:27:09 -08:00
executor Check if command is nil before optimizing 2018-11-13 10:12:03 -08:00
image dep update go-containerregistry 2018-06-03 00:59:34 +00:00
snapshot Only return filepath.SkipDir for directories 2018-11-19 15:56:11 -05:00
timing Add a benchmark package to store and monitor timings. (#367) 2018-09-28 09:13:17 -07:00
util Make snapshotting faster by using filepath.SkipDir. (#451) 2018-11-14 17:44:38 -06:00
version Set a user-agent for registry pushes. (#87) 2018-04-13 14:25:58 -07:00