Skip to content

Commit

Permalink
builder: fix incorrect cache match for inline cache with empty layers
Browse files Browse the repository at this point in the history
See moby/buildkit#1993

Signed-off-by: Tibor Vass <[email protected]>
  • Loading branch information
Tibor Vass committed Feb 25, 2021
1 parent 9962a3f commit 9bf93e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builder/builder-next/adapters/localinlinecache/inlinecache.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ import (
"github.com/pkg/errors"
)

func init() {
// See https://github.com/moby/buildkit/pull/1993.
v1.EmptyLayerRemovalSupported = false
}

// ResolveCacheImporterFunc returns a resolver function for local inline cache
func ResolveCacheImporterFunc(sm *session.Manager, resolverFunc docker.RegistryHosts, cs content.Store, rs reference.Store, is imagestore.Store) remotecache.ResolveCacheImporterFunc {

Expand Down

0 comments on commit 9bf93e9

Please sign in to comment.