Closed fredr closed 4 years ago
noticed that this probably is a duplicate of #589
I've tested with the latest master (a675098b452d020bf678063a3ac2d3be84b0e545) and this seems to have been solved
Thanks for verifying @fredr . Closing this issue but feel free to reopen if needed
Actual behavior When copying files from an other stage and then chowning the files, the chown command will be cached even though the files being copied have change, causing the cache to overwrite all changes.
Expected behavior I would expect the cache to be busted after the
COPY
-command if the files have changed.To Reproduce Steps to reproduce the behavior:
Build the Dockerfile provided in this ticket with kaniko, and run:
change the content of
myfile
to anything else and rerun step 1. It will still returnVALUE
Additional Information The Dockerfile:
The file beeing copied:
myfile
(content doesn't matter)Kaniko Image (fully qualified with digest)
Triage Notes for the Maintainers
--cache
flag