buildkit/frontend/dockerfile
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
..
builder dockerfile: allow lowercase dockerfile name 2020-11-18 23:31:26 -08:00
cmd/dockerfile-frontend dockerfile: fix escaping in release script 2020-12-02 19:02:21 -08:00
command dockerfile: update imports 2018-06-01 20:10:18 -07:00
dockerfile2llb dockerfile build: return error when meet error in load config metadata 2020-11-16 17:16:02 -08:00
dockerignore dockerignore: remove import path enforcement comments 2020-10-30 11:52:59 +01:00
docs dockerfile/docs: fix frontend image tags 2021-02-21 20:19:44 +01:00
instructions frontend/dockerfile: add RunCommand.FlagsUsed field 2021-02-04 22:23:25 +01:00
parser Dockerfile: fix parsing of trailing backslash 2020-10-26 12:29:05 +01:00
release dockerfile: rename experimental channel to labs 2020-11-17 07:42:50 -08:00
shell dockerfile: remove mix of testing frameworks 2020-04-14 22:05:41 -07:00
dockerfile.go frontend: move forwarder under gateway 2018-07-12 17:50:19 -07:00
dockerfile_mount_test.go dockerfile: update run mounts to stable channel 2020-10-04 22:22:08 -07:00
dockerfile_runnetwork_test.go dockerfile: skip cni tests on rootless 2019-09-05 16:49:48 -07:00
dockerfile_runsecurity_test.go dockerfile: add test for whitelisted devices 2020-01-30 18:43:04 -08:00
dockerfile_secrets_test.go executor: remove stub files from rootfs 2020-10-18 23:39:17 -07:00
dockerfile_ssh_test.go dockerfile: update run mounts to stable channel 2020-10-04 22:22:08 -07:00
dockerfile_test.go contenthash: include basename in content checksum for wildcards 2021-04-21 23:26:58 -07:00
errors_test.go Fix duplicate source maps and fix issue preventing multiple locations per source map 2020-05-20 18:48:20 -07:00