Skip to content

Commit 51cc1b5

Browse files
authored
Merge pull request #1006 from crazy-max/rm-field-history
buildx(history): require buildx >=0.23.0 to export a build record
2 parents 4c70561 + 58584e3 commit 51cc1b5

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/buildx/history.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ export class History {
7070
}
7171

7272
public async export(opts: ExportOpts): Promise<ExportResponse> {
73+
if (!(await this.buildx.versionSatisfies('>=0.23.0'))) {
74+
throw new Error('Buildx >= 0.23.0 is required to export a build record');
75+
}
76+
7377
let builderName: string = '';
7478
let nodeName: string = '';
7579
const refs: Array<string> = [];

src/types/buildx/history.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ export interface ExportOpts {
107107
refs: Array<string>;
108108
noSummaries?: boolean;
109109
image?: string;
110-
useContainer?: boolean;
111110
}
112111

113112
export interface ExportResponse {

0 commit comments

Comments
 (0)