Skip to content

Commit 7cd5699

Browse files
ndeloofglours
authored andcommitted
only propagate os.Env to bake, not the whole project.Environment
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent eec2bb7 commit 7cd5699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/compose/build_bake.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
331331
}
332332
cmd := exec.CommandContext(ctx, buildx.Path, args...)
333333

334-
err = s.prepareShellOut(ctx, project.Environment, cmd)
334+
err = s.prepareShellOut(ctx, types.NewMapping(os.Environ()), cmd)
335335
if err != nil {
336336
return nil, err
337337
}

0 commit comments

Comments
 (0)