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] 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 = [];