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 <705411+glours@users.noreply.github.com>
This commit is contained in:
Guillaume Lours 2025-06-06 14:17:19 +02:00 committed by Nicolas De loof
parent 7b9ad96240
commit ec49baca56

View File

@ -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 {