Skip to content

Commit 6668cc5

Browse files
committed
buildx(history): check buildx version before exporting
Signed-off-by: CrazyMax <[email protected]>
1 parent d791e46 commit 6668cc5

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
@@ -49,6 +49,9 @@ export class History {
4949
if (!(await Docker.isAvailable())) {
5050
throw new Error('Docker is required to export a build record');
5151
}
52+
if (!(await this.buildx.versionSatisfies('>=0.13.0'))) {
53+
throw new Error('Buildx >= 0.13.0 is required to export a build record');
54+
}
5255

5356
let builderName: string = '';
5457
let nodeName: string = '';

0 commit comments

Comments
 (0)