Merge pull request #2521 from crazy-max/fix-buildinfo

fix assignment of buildinfo-attrs for exporter
This commit is contained in:
Tõnis Tiigi 2024-06-25 11:36:14 -07:00 committed by GitHub
commit e5ded4b2de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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
}
}
}