From 1814a84dfb88c7a20651f57c578917d73e989771 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Wed, 19 Apr 2023 10:59:47 -0400 Subject: [PATCH] stop estargz-optimizing --- pkg/build/gobuild.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/build/gobuild.go b/pkg/build/gobuild.go index 54a138e68d..017cca4e20 100644 --- a/pkg/build/gobuild.go +++ b/pkg/build/gobuild.go @@ -35,7 +35,6 @@ import ( "strings" "text/template" - "github.com/containerd/stargz-snapshotter/estargz" "github.com/google/go-containerregistry/pkg/name" v1 "github.com/google/go-containerregistry/pkg/v1" "github.com/google/go-containerregistry/pkg/v1/empty" @@ -953,10 +952,7 @@ func buildLayer(appPath, file string, platform *v1.Platform, layerMediaType type binaryLayerBytes := binaryLayerBuf.Bytes() return tarball.LayerFromOpener(func() (io.ReadCloser, error) { return ioutil.NopCloser(bytes.NewBuffer(binaryLayerBytes)), nil - }, tarball.WithCompressedCaching, tarball.WithEstargzOptions(estargz.WithPrioritizedFiles([]string{ - // When using estargz, prioritize downloading the binary entrypoint. - appPath, - })), tarball.WithMediaType(layerMediaType)) + }, tarball.WithCompressedCaching, tarball.WithMediaType(layerMediaType)) } // Append appPath to the PATH environment variable, if it exists. Otherwise,