kaniko/pkg/commands
Priya Wadhwa 9a93f5bad9 Snapshot only specific files for COPY
Before #289 was merged, when copying over directories for COPY kaniko
would get a list of all files at the destination specified and add them
to the list of files to be snapshotted. If the destination was root it
would add all files. This worked because the snapshotter made sure the
file had been changed before adding it to the layer.

After #289, we changed the logic to add all files snapshotted to a layer
without checking if the files had been changed. This created the bug in
got all the files at root and added them to the layer without checking
if they had been changed.

This change should fix this bug. Now, the CopyDir function returns a
list of files it copied over and only those files are added to the list
of files to be snapshotted.

Should fix #314
2018-08-27 11:39:00 -07:00
..
add.go Update deps 2018-07-31 16:23:23 -07:00
arg.go Update deps 2018-07-31 16:23:23 -07:00
cmd.go Update deps 2018-07-31 16:23:23 -07:00
cmd_test.go Update deps 2018-07-31 16:23:23 -07:00
commands.go Update deps 2018-07-31 16:23:23 -07:00
copy.go Snapshot only specific files for COPY 2018-08-27 11:39:00 -07:00
entrypoint.go Update deps 2018-07-31 16:23:23 -07:00
entrypoint_test.go Update deps 2018-07-31 16:23:23 -07:00
env.go Update deps 2018-07-31 16:23:23 -07:00
env_test.go Update deps 2018-07-31 16:23:23 -07:00
expose.go Update deps 2018-07-31 16:23:23 -07:00
expose_test.go Update deps 2018-07-31 16:23:23 -07:00
healthcheck.go Update deps 2018-07-31 16:23:23 -07:00
label.go Update deps 2018-07-31 16:23:23 -07:00
label_test.go Update deps 2018-07-31 16:23:23 -07:00
onbuild.go Update deps 2018-07-31 16:23:23 -07:00
onbuild_test.go Update deps 2018-07-31 16:23:23 -07:00
run.go Set default home value (#281) 2018-08-10 12:58:07 -07:00
run_test.go Set default home value (#281) 2018-08-10 12:58:07 -07:00
shell.go Update deps 2018-07-31 16:23:23 -07:00
shell_test.go Update deps 2018-07-31 16:23:23 -07:00
stopsignal.go Update deps 2018-07-31 16:23:23 -07:00
stopsignal_test.go Update deps 2018-07-31 16:23:23 -07:00
user.go Update deps 2018-07-31 16:23:23 -07:00
user_test.go Update deps 2018-07-31 16:23:23 -07:00
volume.go Always snapshot files in COPY and RUN commands 2018-08-23 18:23:39 -07:00
volume_test.go Update deps 2018-07-31 16:23:23 -07:00
workdir.go Always snapshot files in COPY and RUN commands 2018-08-23 18:23:39 -07:00
workdir_test.go Update deps 2018-07-31 16:23:23 -07:00