buildkit/cache/contenthash
Tonis Tiigi 1982e1e285 contenthash: include basename in content checksum for wildcards
While we generally ignore the basename in this layer, for wildcards
there in no other place to add the basename to the checksum as they
can not be resolved earlier. Before the basename that was in the
checksum was the wildcard itself, so if the wildcard remained same,
content remained same but the file where wildcard pointed to was
renamed, the cache was not invalidated.

Unfortunately, this change breaks cache for all copy commands that
use a wildcard.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-03-23 17:15:50 -07:00
..
checksum.go contenthash: include basename in content checksum for wildcards 2021-03-23 17:15:50 -07:00
checksum.pb.go vendor containerd (requred for rootless overlayfs on kernel 5.11) 2021-03-10 13:51:27 +09:00
checksum.proto contenthash: add lru for context objects 2017-07-31 18:39:29 -07:00
checksum_test.go contenthash: include basename in content checksum for wildcards 2021-03-23 17:15:50 -07:00
filehash.go Use filesystem-supplied modes for checksumming content 2020-07-29 02:50:24 +10:00
filehash_unix.go Use filesystem-supplied modes for checksumming content 2020-07-29 02:50:24 +10:00
filehash_windows.go Use filesystem-supplied modes for checksumming content 2020-07-29 02:50:24 +10:00
generate.go contenthash: add lru for context objects 2017-07-31 18:39:29 -07:00
path.go upgrade errors checks to Is() 2020-04-18 22:53:38 -07:00
tarsum.go contenthash: avoid deprecated Xattrs header 2020-07-19 09:28:36 -07:00