Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion buf/internal/toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,16 @@ def _buf_download_releases_impl(ctx):
major_version = int(version_number[0])
minor_version = int(version_number[1])
os, cpu = _detect_host_platform(ctx)
if os not in ["linux", "darwin", "windows"] or cpu not in ["arm64", "amd64", "ppc64le"]:
if os not in ["linux", "darwin", "windows"] or cpu not in ["arm64", "amd64", "ppc64le", "s390x"]:
fail("Unsupported operating system or cpu architecture ")
if os == "linux" and cpu == "arm64":
cpu = "aarch64"
if cpu == "amd64":
cpu = "x86_64"
if cpu == "ppc64le" and (major_version < 1 or (major_version == 1 and minor_version < 54)):
fail("Unsupported operating system or cpu architecture ")
if cpu == "s390x" and (major_version < 1 or (major_version == 1 and minor_version < 56)):
fail("Unsupported operating system or cpu architecture ")

ctx.report_progress("Downloading buf release hash")
url = "{}/{}/sha256.txt".format(repository_url, version)
Expand Down
Loading