Browse Source

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 6 months ago
parent
commit
ec49baca56
1 changed files with 3 additions and 0 deletions
  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 {
 		return nil, err
 	}
+	defer func() {
+		_ = os.Remove(metadata.Name())
+	}()
 
 	buildx, err := manager.GetPlugin("buildx", s.dockerCli, &cobra.Command{})
 	if err != nil {