buildkit/cache
Tonis Tiigi a1094c61f9 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>
(cherry picked from commit 1982e1e285)
2021-04-21 23:26:58 -07:00
..
contenthash contenthash: include basename in content checksum for wildcards 2021-04-21 23:26:58 -07:00
metadata cache: Remove ImageRef from DescHandlers 2020-08-05 17:18:43 -07:00
remotecache allow skipping empty layer detection on cache export 2021-02-24 20:27:18 +00:00
util add session injection to remote loading 2020-11-02 22:20:44 -08:00
blobs.go add session injection to remote loading 2020-11-02 22:20:44 -08:00
manager.go Fixes needed to vendor buildkit into moby 2020-11-13 01:51:55 +00:00
manager_test.go add session injection to remote loading 2020-11-02 22:20:44 -08:00
metadata.go cache: Remove ImageRef from DescHandlers 2020-08-05 17:18:43 -07:00
migrate_v2.go cache: avoid snapshot migration on shallow refs 2020-06-12 17:59:30 -07:00
opts.go add session injection to remote loading 2020-11-02 22:20:44 -08:00
refs.go Merge pull request #1825 from tonistiigi/prepareRemoteSnapshots-panic-fix 2020-11-25 15:27:04 -08:00
remote.go Merge pull request #1791 from tonistiigi/push-pull-retry 2020-11-16 13:28:07 +09:00