Преглед изворни кода

do not forgot to remove the bake metadata file
few DD e2e tests failed on Windows due to permission issues

Signed-off-by: Guillaume Lours <[email protected]>

Guillaume Lours пре 7 месеци
родитељ
комит
ec49baca56
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      pkg/compose/build_bake.go

+ 3 - 0
pkg/compose/build_bake.go

@@ -236,6 +236,9 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
 	if err != nil {
 	if err != nil {
 		return nil, err
 		return nil, err
 	}
 	}
+	defer func() {
+		_ = os.Remove(metadata.Name())
+	}()
 
 
 	buildx, err := manager.GetPlugin("buildx", s.dockerCli, &cobra.Command{})
 	buildx, err := manager.GetPlugin("buildx", s.dockerCli, &cobra.Command{})
 	if err != nil {
 	if err != nil {