From d216e17d8968ca9eb876cf19a734e4a6f2142084 Mon Sep 17 00:00:00 2001 From: "abhishek.jha" Date: Wed, 25 Feb 2026 12:23:24 -0800 Subject: [PATCH] chore: Upgrade buf from v0.36.0 to v1.47.2 buf v0.36.0 is 5 years old and only ships x86_64 binaries, which silently fails on Apple Silicon when Rosetta is not installed (the Makefile downloads a 404 HTML page instead of a real binary). - Upgrade buf to v1.47.2 which ships native arm64 binaries - Use native arch for buf download URL instead of EMULATE_X86 Resolves #7748 Made-with: Cursor --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 85ce232e931..cea38175d85 100644 --- a/Makefile +++ b/Makefile @@ -225,10 +225,10 @@ $(BUILD)/go_mod_check: go.mod internal/tools/go.mod go.work # https://docs.buf.build/ # changing BUF_VERSION will automatically download and use the specified version. -BUF_VERSION = 0.36.0 +BUF_VERSION = 1.47.2 OS = $(shell uname -s) ARCH = $(shell $(EMULATE_X86) uname -m) -BUF_URL = https://github.com/bufbuild/buf/releases/download/v$(BUF_VERSION)/buf-$(OS)-$(ARCH) +BUF_URL = https://github.com/bufbuild/buf/releases/download/v$(BUF_VERSION)/buf-$(OS)-$(shell uname -m) # use BUF_VERSION_BIN as a bin prerequisite, not "buf", so the correct version will be used. # otherwise this must be a .PHONY rule, or the buf bin / symlink could become out of date. BUF_VERSION_BIN = buf-$(BUF_VERSION)