From f06e39e022e58a4baf1d08955bb9ce75dcb0f7de Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Wed, 4 Mar 2026 14:34:21 +0100 Subject: [PATCH 1/2] buildx(history): remove unused field Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/types/buildx/history.ts | 1 - 1 file changed, 1 deletion(-) 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 { From 58584e3d97a0ca71aed5823dfab6a27f12e96b3e Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Wed, 4 Mar 2026 14:38:19 +0100 Subject: [PATCH 2/2] buildx(history): require buildx >=0.23.0 to export a build record Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/buildx/history.ts | 4 ++++ 1 file changed, 4 insertions(+) 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 = [];