Skip to content

Commit 5d9c885

Browse files
Fix protoc binary download for macos
1 parent 57c8557 commit 5d9c885

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@ $(MOCKERY):
402402
go install github.com/vektra/mockery/v2@v$(MOCKERY_VERSION)
403403

404404
$(PROTOC): OS_TYPE ?= $(shell uname -s | tr '[:upper:]' '[:lower:]' | sed 's/darwin/osx/')
405-
$(PROTOC): DOWNLOAD_URL = https://github.com/protocolbuffers/protobuf/releases/download/v$(PROTOC_VERSION)/protoc-$(PROTOC_VERSION)-$(OS_TYPE)-x86_64.zip
405+
$(PROTOC): ARCH_SUFFIX = $(if $(findstring osx,$(OS_TYPE)),universal_binary,x86_64)
406+
$(PROTOC): DOWNLOAD_URL = https://github.com/protocolbuffers/protobuf/releases/download/v$(PROTOC_VERSION)/protoc-$(PROTOC_VERSION)-$(OS_TYPE)-$(ARCH_SUFFIX).zip
406407
$(PROTOC): TOOL_BUILD_DIR = $(local)/build
407408
$(PROTOC):
408409
# Installing $(DOWNLOAD_URL) as $(PROTOC)

0 commit comments

Comments
 (0)