From fd6eb3c9c443e2aae02c32d0c66aa416b84cddba Mon Sep 17 00:00:00 2001 From: Gong Su Date: Fri, 27 Dec 2024 15:10:44 -0500 Subject: [PATCH] Allow s390x arch Signed-off-by: Gong Su --- buf/internal/toolchain.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buf/internal/toolchain.bzl b/buf/internal/toolchain.bzl index 4d0cf0c..b2bcc40 100644 --- a/buf/internal/toolchain.bzl +++ b/buf/internal/toolchain.bzl @@ -112,7 +112,7 @@ def _buf_download_releases_impl(ctx): version = json.decode(version_data)["name"] os, cpu = _detect_host_platform(ctx) - if os not in ["linux", "darwin", "windows"] or cpu not in ["arm64", "amd64"]: + if os not in ["linux", "darwin", "windows"] or cpu not in ["arm64", "amd64", "s390x"]: fail("Unsupported operating system or cpu architecture ") if os == "linux" and cpu == "arm64": cpu = "aarch64"