diff --git a/build/opt.go b/build/opt.go index 5d949e4aaf8..0e264f19a4a 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 } } }