mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 18:13:42 +08:00 
			
		
		
		
	fix assignment of buildinfo-attrs for exporter
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
		@@ -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" {
 | 
							if e.Type == "docker" || e.Type == "image" || e.Type == "oci" {
 | 
				
			||||||
			// inline buildinfo attrs from build arg
 | 
								// inline buildinfo attrs from build arg
 | 
				
			||||||
			if v, ok := opt.BuildArgs["BUILDKIT_INLINE_BUILDINFO_ATTRS"]; ok {
 | 
								if v, ok := opt.BuildArgs["BUILDKIT_INLINE_BUILDINFO_ATTRS"]; ok {
 | 
				
			||||||
				e.Attrs["buildinfo-attrs"] = v
 | 
									opt.Exports[i].Attrs["buildinfo-attrs"] = v
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user