diff --git a/src/buildah.ts b/src/buildah.ts index 3068049..db351c4 100644 --- a/src/buildah.ts +++ b/src/buildah.ts @@ -186,6 +186,10 @@ export class BuildahCli implements Buildah { ): Promise { // ghCore.info(`${EXECUTABLE} ${args.join(" ")}`) + if (args.arch && args.platform) { + throw new Error("The --platform option may not be used in combination with the --arch option."); + } + let stdout = ""; let stderr = "";