Skip to content

Commit

Permalink
Merge pull request #453 from crazy-max/history-finalize
Browse files Browse the repository at this point in the history
buildx(history): wait for build records to be finalized
  • Loading branch information
crazy-max authored Sep 27, 2024
2 parents 8fb39d6 + 6c05e09 commit 18c8bdd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/buildx/history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ export class History {
core.info(`exporting build record to ${outDir}`);
fs.mkdirSync(outDir, {recursive: true});

// wait 3 seconds to ensure build records are finalized: https://github.com/moby/buildkit/pull/5109
await new Promise(resolve => setTimeout(resolve, 3000));

const buildxInFifoPath = Context.tmpName({
template: 'buildx-in-XXXXXX.fifo',
tmpdir: Context.tmpDir()
Expand Down

0 comments on commit 18c8bdd

Please sign in to comment.