From 314ca32446813c42a0a81f4ae945806414f1efee Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Thu, 13 Jun 2024 10:56:32 +0200 Subject: [PATCH] fix assignment of buildinfo-attrs for exporter Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- build/opt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/opt.go b/build/opt.go index 5d949e4a..0e264f19 100644 --- a/build/opt.go +++ b/build/opt.go @@ -258,7 +258,7 @@ func toSolveOpt(ctx context.Context, node builder.Node, multiDriver bool, opt Op if e.Type == "docker" || e.Type == "image" || e.Type == "oci" { // inline buildinfo attrs from build arg if v, ok := opt.BuildArgs["BUILDKIT_INLINE_BUILDINFO_ATTRS"]; ok { - e.Attrs["buildinfo-attrs"] = v + opt.Exports[i].Attrs["buildinfo-attrs"] = v } } }