Skip to content

Commit

Permalink
Merge pull request #376 from crazy-max/export-buildx-version
Browse files Browse the repository at this point in the history
buildx(history): check buildx version before exporting
  • Loading branch information
crazy-max committed Jun 19, 2024
2 parents d791e46 + 6668cc5 commit 8c81eef
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 8c81eef

Please sign in to comment.