Multistage builds doesn't always bust the cache correctly #845
Labels
area/caching
For all bugs related to cache issues
area/multi-stage builds
issues related to kaniko multi-stage builds
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:
myfile
to anything else and rerun step 1.It will still return
VALUE
Additional Information
The Dockerfile:
The file beeing copied:
myfile
(content doesn't matter)Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: