We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57c8557 commit 5d9c885Copy full SHA for 5d9c885
Makefile
@@ -402,7 +402,8 @@ $(MOCKERY):
402
go install github.com/vektra/mockery/v2@v$(MOCKERY_VERSION)
403
404
$(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
+$(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
407
$(PROTOC): TOOL_BUILD_DIR = $(local)/build
408
$(PROTOC):
409
# Installing $(DOWNLOAD_URL) as $(PROTOC)
0 commit comments