Jelajahi Sumber

only propagate os.Env to bake, not the whole project.Environment

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 3 bulan lalu
induk
melakukan
7cd569922e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      pkg/compose/build_bake.go

+ 1 - 1
pkg/compose/build_bake.go

@@ -331,7 +331,7 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
 	}
 	cmd := exec.CommandContext(ctx, buildx.Path, args...)
 
-	err = s.prepareShellOut(ctx, project.Environment, cmd)
+	err = s.prepareShellOut(ctx, types.NewMapping(os.Environ()), cmd)
 	if err != nil {
 		return nil, err
 	}