kaniko/pkg
Steve Ramage f2ef2b385c Use filename in cache key to prevent collisions under rename
Issues #2241 #1678 both point to cases where renames can point to incorrect images being used with caching. This
commit adds the path of the file (relative to the build context to the hash).

A different approach would be to change the underlying function in CacheHasher to include the name (and maybe file size), this was avoided
for two reasons:

1. It was unclear whether this would change or break the computed digests outside the context of caching.
2. The CacheHasher does not know the prefix to strip in the filename to compute the hash.
2024-06-16 12:51:30 -07:00
..
buildcontext feat: add skip tls flag for private git context (#2854) 2024-02-28 23:18:41 -08:00
cache Reproducing and Fixing #2892 (#2893) 2023-12-14 17:00:54 -08:00
commands fix: warn instead of error when COPY wildcard does not match any files (#3127) 2024-05-13 22:38:51 -07:00
config Add --push-ignore-immutable-tag-errors boolean CLI option (#2774) 2024-02-29 10:05:58 -08:00
constants Fix fs_util tests failing on systems with /tmp mountpoint (#2583) 2023-06-19 12:01:20 -07:00
creds fix: Remove references to deprecated io/ioutil pkg (#2867) 2023-11-28 13:02:53 -08:00
dockerfile fix: Remove references to deprecated io/ioutil pkg (#2867) 2023-11-28 13:02:53 -08:00
executor Use filename in cache key to prevent collisions under rename 2024-06-16 12:51:30 -07:00
fakes refactor cache.Warm and add tests 2020-01-10 12:29:17 -08:00
filesystem fix: Remove references to deprecated io/ioutil pkg (#2867) 2023-11-28 13:02:53 -08:00
image fix: make --registry-map compatible with namespaced images (#3138) 2024-05-13 18:46:36 -07:00
logging Add timestamp to logs 2020-04-23 13:40:47 +02:00
mocks/go-containerregistry/mockv1 rename mock pkg for lint 2020-01-17 14:59:14 -08:00
snapshot fix: Remove references to deprecated io/ioutil pkg (#2867) 2023-11-28 13:02:53 -08:00
timing Fix Integration tests (#2425) 2023-03-21 12:30:54 -04:00
util fix: warn instead of error when COPY wildcard does not match any files (#3127) 2024-05-13 22:38:51 -07:00
version