From 75097b8cac9cd81ef5ea6514ba0b1d1ad91e0bd2 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Mon, 12 Apr 2021 13:22:04 -0400 Subject: [PATCH] hcsshim seems to have been updated Signed-off-by: Davanum Srinivas --- vendor/github.com/Microsoft/hcsshim/pkg/ociwclayer/export.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vendor/github.com/Microsoft/hcsshim/pkg/ociwclayer/export.go b/vendor/github.com/Microsoft/hcsshim/pkg/ociwclayer/export.go index d4d800384..e3f1be333 100644 --- a/vendor/github.com/Microsoft/hcsshim/pkg/ociwclayer/export.go +++ b/vendor/github.com/Microsoft/hcsshim/pkg/ociwclayer/export.go @@ -25,7 +25,9 @@ func ExportLayerToTar(ctx context.Context, w io.Writer, path string, parentLayer if err != nil { return err } - defer hcsshim.DeactivateLayer(driverInfo, path) + defer func() { + _ = hcsshim.DeactivateLayer(driverInfo, path) + }() // Prepare and unprepare the layer to ensure that it has been initialized. err = hcsshim.PrepareLayer(driverInfo, path, parentLayerPaths)