From a542b5d37f338a801444b5b9c5935641b1cb919b Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Fri, 27 Nov 2020 14:18:06 +0100 Subject: [PATCH] Don't start buildx' build with empty opts Signed-off-by: Nicolas De Loof --- local/build.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/local/build.go b/local/build.go index 50300069..c2cf2827 100644 --- a/local/build.go +++ b/local/build.go @@ -85,6 +85,9 @@ func (s *composeService) needPull(ctx context.Context, service types.ServiceConf } func (s *composeService) build(ctx context.Context, project *types.Project, opts map[string]build.Options) error { + if len(opts) == 0 { + return nil + } const drivername = "default" d, err := driver.GetDriver(ctx, drivername, nil, s.apiClient, nil, nil, "", nil, project.WorkingDir) if err != nil {