瀏覽代碼

Merge pull request #979 from docker/console

Don't start buildx' build with empty opts
Guillaume Tardif 4 年之前
父節點
當前提交
9b140930a7
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      local/build.go

+ 3 - 0
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 {