From c6cdcb02cfbac55079ca8b1d475fbd46e61f3e5b Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Wed, 29 Mar 2023 12:37:51 +0100 Subject: [PATCH] build: replace removed buildkit BUILDINFO field Signed-off-by: Justin Chadwell --- build/build.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/build.go b/build/build.go index 8e8f7d63..e86c350b 100644 --- a/build/build.go +++ b/build/build.go @@ -1487,8 +1487,8 @@ func waitContextDeps(ctx context.Context, index int, results *waitmap.Map, so *c if dt, ok := rr.Metadata[exptypes.ExporterImageConfigKey+"/"+platform]; ok { metadata[exptypes.ExporterImageConfigKey] = dt } - if dt, ok := rr.Metadata[exptypes.ExporterBuildInfo+"/"+platform]; ok { - metadata[exptypes.ExporterBuildInfo] = dt + if dt, ok := rr.Metadata["containerimage.buildinfo/"+platform]; ok { + metadata["containerimage.buildinfo"] = dt } if len(metadata) > 0 { dt, err := json.Marshal(metadata) @@ -1511,8 +1511,8 @@ func waitContextDeps(ctx context.Context, index int, results *waitmap.Map, so *c if dt, ok := rr.Metadata[exptypes.ExporterImageConfigKey]; ok { metadata[exptypes.ExporterImageConfigKey] = dt } - if dt, ok := rr.Metadata[exptypes.ExporterBuildInfo]; ok { - metadata[exptypes.ExporterBuildInfo] = dt + if dt, ok := rr.Metadata["containerimage.buildinfo"]; ok { + metadata["containerimage.buildinfo"] = dt } if len(metadata) > 0 { dt, err := json.Marshal(metadata)