Skip to content

Commit 58584e3

Browse files
committed
buildx(history): require buildx >=0.23.0 to export a build record
Signed-off-by: CrazyMax <[email protected]>
1 parent f06e39e commit 58584e3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/buildx/history.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ export class History {
7070
}
7171

7272
public async export(opts: ExportOpts): Promise<ExportResponse> {
73+
if (!(await this.buildx.versionSatisfies('>=0.23.0'))) {
74+
throw new Error('Buildx >= 0.23.0 is required to export a build record');
75+
}
76+
7377
let builderName: string = '';
7478
let nodeName: string = '';
7579
const refs: Array<string> = [];

0 commit comments

Comments
 (0)