From 171c4375a140cc53c24b2befbad126c974749ab2 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Thu, 3 Mar 2022 13:12:28 -0800 Subject: [PATCH] build: fix multi-node builds with mixed platforms Signed-off-by: Tonis Tiigi --- build/build.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/build.go b/build/build.go index b6da2fa5..46eead92 100644 --- a/build/build.go +++ b/build/build.go @@ -189,6 +189,10 @@ func splitToDriverPairs(availablePlatforms map[string]int, opt map[string]Option pp = append(pp, p) mm[idx] = pp } + // if no platform is specified, use first driver + if len(mm) == 0 { + mm[0] = nil + } dps := make([]driverPair, 0, 2) for idx, pp := range mm { dps = append(dps, driverPair{driverIndex: idx, platforms: pp})