1
0
mirror of https://github.com/moby/buildkit.git synced 2025-07-27 16:41:49 +03:00

Compute diff from the upper dir of overlayfs-based snapshotter

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
Kohei Tokunaga
2021-08-30 17:26:40 +09:00
parent 89ebbe5d34
commit d586efd5db
5 changed files with 948 additions and 7 deletions

15
cache/blobs_nolinux.go vendored Normal file
View File

@ -0,0 +1,15 @@
// +build !linux
package cache
import (
"context"
"github.com/containerd/containerd/mount"
ocispecs "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/pkg/errors"
)
func (sr *immutableRef) tryComputeOverlayBlob(ctx context.Context, lower, upper []mount.Mount, mediaType string, ref string, compressorFunc compressor) (_ ocispecs.Descriptor, ok bool, err error) {
return ocispecs.Descriptor{}, true, errors.Errorf("overlayfs-based diff computing is unsupported")
}