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. |
||
|---|---|---|
| .. | ||
| build.go | ||
| build_test.go | ||
| composite_cache.go | ||
| composite_cache_test.go | ||
| copy_multistage_test.go | ||
| fakes.go | ||
| push.go | ||
| push_test.go | ||