mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-10-31 16:13:45 +08:00 
			
		
		
		
	Merge pull request #985 from tonistiigi/multi-node-platform
build: fix multi-node builds with mixed platforms
This commit is contained in:
		| @@ -189,6 +189,10 @@ func splitToDriverPairs(availablePlatforms map[string]int, opt map[string]Option | |||||||
| 			pp = append(pp, p) | 			pp = append(pp, p) | ||||||
| 			mm[idx] = pp | 			mm[idx] = pp | ||||||
| 		} | 		} | ||||||
|  | 		// if no platform is specified, use first driver | ||||||
|  | 		if len(mm) == 0 { | ||||||
|  | 			mm[0] = nil | ||||||
|  | 		} | ||||||
| 		dps := make([]driverPair, 0, 2) | 		dps := make([]driverPair, 0, 2) | ||||||
| 		for idx, pp := range mm { | 		for idx, pp := range mm { | ||||||
| 			dps = append(dps, driverPair{driverIndex: idx, platforms: pp}) | 			dps = append(dps, driverPair{driverIndex: idx, platforms: pp}) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 CrazyMax
					CrazyMax