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 = []; diff --git a/src/types/buildx/history.ts b/src/types/buildx/history.ts index e9a8ed7..f93ddf9 100644 --- a/src/types/buildx/history.ts +++ b/src/types/buildx/history.ts @@ -107,7 +107,6 @@ export interface ExportOpts { refs: Array; noSummaries?: boolean; image?: string; - useContainer?: boolean; } export interface ExportResponse {