fix: should ignore nil client

Signed-off-by: Morlay <morlay.null@gmail.com>
pull/686/head
Morlay 4 years ago
parent d9ee3b134c
commit 3768ab268b

@ -197,6 +197,10 @@ func resolveDrivers(ctx context.Context, drivers []DriverInfo, auth Auth, opt ma
eg, ctx := errgroup.WithContext(ctx)
for i, c := range clients {
if c == nil {
continue
}
func(i int, c *client.Client) {
eg.Go(func() error {
clients[i].Build(ctx, client.SolveOpt{}, "buildx", func(ctx context.Context, c gateway.Client) (*gateway.Result, error) {

Loading…
Cancel
Save