fix assignment of buildinfo-attrs for exporter

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2024-06-13 10:56:32 +02:00
parent 3b25e3fa5c
commit 314ca32446
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}
}