Skip to content

Commit 18c8bdd

Browse files
authored
Merge pull request #453 from crazy-max/history-finalize
buildx(history): wait for build records to be finalized
2 parents 8fb39d6 + 6c05e09 commit 18c8bdd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/buildx/history.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ export class History {
8484
core.info(`exporting build record to ${outDir}`);
8585
fs.mkdirSync(outDir, {recursive: true});
8686

87+
// wait 3 seconds to ensure build records are finalized: https://github.com/moby/buildkit/pull/5109
88+
await new Promise(resolve => setTimeout(resolve, 3000));
89+
8790
const buildxInFifoPath = Context.tmpName({
8891
template: 'buildx-in-XXXXXX.fifo',
8992
tmpdir: Context.tmpDir()

0 commit comments

Comments
 (0)