kaniko/pkg/snapshot
Gilbert Gilb's e5585fded8 Always add parent directories of files to snapshots.
During a snapshot, when a file changed and not its parent directories,
the parent directories weren't added to the layer. This is inconsistent
with Docker's behavior which always add parent directories to the layer.
In some edge-cases, it could lead to problems with docker considering
that parent directories where owned by root in forthcoming layers
although they shouldn't (see #1163).

Also, Docker seems to be POSIX compliant regarding the name of
directories in the archive, which always have a slash appended. This
commit also fixes this.

Fixes #1163
2020-03-29 18:25:37 +02:00
..
layered_map.go add /tmp/apt-key to whitelist for Dockerfiles which use command 2020-01-24 15:54:44 -08:00
layered_map_test.go Stop storing a separate cache hash. (#560) 2019-02-14 12:24:43 -06:00
snapshot.go Always add parent directories of files to snapshots. 2020-03-29 18:25:37 +02:00
snapshot_test.go Always add parent directories of files to snapshots. 2020-03-29 18:25:37 +02:00