Don't start buildx' build with empty opts

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2020-11-27 14:18:06 +01:00
parent c0805464f5
commit a542b5d37f
No known key found for this signature in database
GPG Key ID: 9858809D6F8F6E7E
1 changed files with 3 additions and 0 deletions

View File

@ -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 {