diff --git a/src/buildx/history.ts b/src/buildx/history.ts index bb22015..092e4ac 100644 --- a/src/buildx/history.ts +++ b/src/buildx/history.ts @@ -70,6 +70,10 @@ export class History { } public async export(opts: ExportOpts): Promise { + if (!(await this.buildx.versionSatisfies('>=0.23.0'))) { + throw new Error('Buildx >= 0.23.0 is required to export a build record'); + } + let builderName: string = ''; let nodeName: string = ''; const refs: Array = [];