From 6668cc52b74ef7e40b22e6cf138782956f547d1f Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Wed, 19 Jun 2024 18:30:56 +0200 Subject: [PATCH] buildx(history): check buildx version before exporting Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/buildx/history.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/buildx/history.ts b/src/buildx/history.ts index 970e58c..31a4448 100644 --- a/src/buildx/history.ts +++ b/src/buildx/history.ts @@ -49,6 +49,9 @@ export class History { if (!(await Docker.isAvailable())) { throw new Error('Docker is required to export a build record'); } + if (!(await this.buildx.versionSatisfies('>=0.13.0'))) { + throw new Error('Buildx >= 0.13.0 is required to export a build record'); + } let builderName: string = ''; let nodeName: string = '';