Merge pull request #10151 from freeformz/ffz/NoShareMap

Don't share the options map
This commit is contained in:
Guillaume Lours 2023-01-09 12:13:48 +01:00 committed by GitHub
commit 00c60da331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -48,7 +48,6 @@ func (s *composeService) Build(ctx context.Context, project *types.Project, opti
}
func (s *composeService) build(ctx context.Context, project *types.Project, options api.BuildOptions) error {
opts := map[string]build.Options{}
args := flatten(options.Args.Resolve(envResolver(project.Environment)))
return InDependencyOrder(ctx, project, func(ctx context.Context, name string) error {
@ -92,7 +91,7 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opti
Attrs: map[string]string{},
}}
}
opts[imageName] = buildOptions
opts := map[string]build.Options{imageName: buildOptions}
_, err = s.doBuild(ctx, project, opts, options.Progress)
return err
}, func(traversal *graphTraversal) {