See https://github.com/moby/buildkit/pull/1993
Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit 9bf93e90fa9ce74b6f7309a22838da8189838b3b)
Signed-off-by: Tibor Vass <tibor@docker.com>
| ... | ... |
@@ -22,6 +22,11 @@ import ( |
| 22 | 22 |
"github.com/pkg/errors" |
| 23 | 23 |
) |
| 24 | 24 |
|
| 25 |
+func init() {
|
|
| 26 |
+ // See https://github.com/moby/buildkit/pull/1993. |
|
| 27 |
+ v1.EmptyLayerRemovalSupported = false |
|
| 28 |
+} |
|
| 29 |
+ |
|
| 25 | 30 |
// ResolveCacheImporterFunc returns a resolver function for local inline cache |
| 26 | 31 |
func ResolveCacheImporterFunc(sm *session.Manager, resolverFunc docker.RegistryHosts, cs content.Store, rs reference.Store, is imagestore.Store) remotecache.ResolveCacheImporterFunc {
|
| 27 | 32 |
|