Browse Source

restore os.Remove(metadataFile)

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 5 months ago
parent
commit
15c9651a3a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      pkg/compose/build_bake.go

+ 3 - 0
pkg/compose/build_bake.go

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