Skip to content

Commit 15c9651

Browse files
ndeloofglours
authored andcommitted
restore os.Remove(metadataFile)
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
1 parent 4893a8b commit 15c9651

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/compose/build_bake.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
259259
break
260260
}
261261
}
262+
defer func() {
263+
_ = os.Remove(metadataFile)
264+
}()
262265

263266
buildx, err := manager.GetPlugin("buildx", s.dockerCli, &cobra.Command{})
264267
if err != nil {

0 commit comments

Comments
 (0)