mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-10-31 16:13:45 +08:00 
			
		
		
		
	build: allow multiple exports if supported by buildkit
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
		| @@ -290,7 +290,9 @@ func toSolveOpt(ctx context.Context, node builder.Node, multiDriver bool, opt Op | ||||
| 			opt.Exports = []client.ExportEntry{{Type: "image", Attrs: map[string]string{}}} | ||||
| 		} | ||||
| 	default: | ||||
| 		return nil, nil, errors.Errorf("multiple outputs currently unsupported") | ||||
| 		if err := bopts.LLBCaps.Supports(pb.CapMultipleExporters); err != nil { | ||||
| 			return nil, nil, errors.Errorf("multiple outputs currently unsupported by the current BuildKit daemon, please upgrade to version v0.13+ or use a single output") | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	// fill in image exporter names from tags | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Tonis Tiigi
					Tonis Tiigi