Skip to content

Commit

Permalink
buildx(history): check buildx version before exporting
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Jun 19, 2024
1 parent d791e46 commit 6668cc5
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 @@ -49,6 +49,9 @@ export class History {
if (!(await Docker.isAvailable())) {
throw new Error('Docker is required to export a build record');
}
if (!(await this.buildx.versionSatisfies('>=0.13.0'))) {
throw new Error('Buildx >= 0.13.0 is required to export a build record');
}

let builderName: string = '';
let nodeName: string = '';
Expand Down

0 comments on commit 6668cc5

Please sign in to comment.