kaniko/pkg/executor
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
..
build.go Fix missing or partial support for pattern substition in variable references with cache enabled (#2968) 2024-02-13 18:57:19 -08:00
build_test.go Fix missing or partial support for pattern substition in variable references with cache enabled (#2968) 2024-02-13 18:57:19 -08:00
composite_cache.go Use filename in cache key to prevent collisions under rename 2024-06-16 12:51:30 -07:00
composite_cache_test.go Use filename in cache key to prevent collisions under rename 2024-06-16 12:51:30 -07:00
copy_multistage_test.go fix: resolve issue with copy_multistage_test.go and broken ioutil import (#2879) 2023-11-29 10:51:39 -08:00
fakes.go Prevent extra snapshot with --use-new-run (#2943) 2024-01-16 21:14:03 -08:00
push.go Enable pushing cache with --no-push (#3181) 2024-06-04 11:21:16 -07:00
push_test.go fix: Remove references to deprecated io/ioutil pkg (#2867) 2023-11-28 13:02:53 -08:00