From b04a2dad6b8ab3eb5e6cb04c3a372abbc5cef535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Fri, 9 Feb 2024 15:31:39 +0100 Subject: [PATCH] builder/controller: Adjust NewWorkerOpt call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/moby/buildkit/commit/8bfd280ab7306b03db585c4b9e158ee5e1f882fa added a new argument that allows to specify different runtime. Signed-off-by: Paweł Gronowski --- builder/builder-next/controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/builder-next/controller.go b/builder/builder-next/controller.go index 166704375b..ac79c40031 100644 --- a/builder/builder-next/controller.go +++ b/builder/builder-next/controller.go @@ -105,7 +105,8 @@ func newSnapshotterController(ctx context.Context, rt http.RoundTripper, opt Opt wo, err := containerd.NewWorkerOpt(opt.Root, opt.ContainerdAddress, opt.Snapshotter, opt.ContainerdNamespace, opt.Rootless, map[string]string{ label.Snapshotter: opt.Snapshotter, - }, dns, nc, opt.ApparmorProfile, false, nil, "", ctd.WithTimeout(60*time.Second)) + }, dns, nc, opt.ApparmorProfile, false, nil, "", nil, ctd.WithTimeout(60*time.Second), + ) if err != nil { return nil, err }