Skip to content

Commit 00c60da

Browse files
authored
Merge pull request docker#10151 from freeformz/ffz/NoShareMap
Don't share the options map
2 parents fbbc0de + 73ebbff commit 00c60da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/compose/build.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ func (s *composeService) Build(ctx context.Context, project *types.Project, opti
4848
}
4949

5050
func (s *composeService) build(ctx context.Context, project *types.Project, options api.BuildOptions) error {
51-
opts := map[string]build.Options{}
5251
args := flatten(options.Args.Resolve(envResolver(project.Environment)))
5352

5453
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
9291
Attrs: map[string]string{},
9392
}}
9493
}
95-
opts[imageName] = buildOptions
94+
opts := map[string]build.Options{imageName: buildOptions}
9695
_, err = s.doBuild(ctx, project, opts, options.Progress)
9796
return err
9897
}, func(traversal *graphTraversal) {

0 commit comments

Comments
 (0)