From 07f787693c3d896365258e6d3bce1b6ed8ee905f Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Thu, 14 Jul 2022 18:58:45 +0300 Subject: [PATCH] Fix build failure on M1 mac (#6324) --- .../src/main/kotlin/otel.protobuf-conventions.gradle.kts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conventions/src/main/kotlin/otel.protobuf-conventions.gradle.kts b/conventions/src/main/kotlin/otel.protobuf-conventions.gradle.kts index 2e40a53a29f9..a485012a988f 100644 --- a/conventions/src/main/kotlin/otel.protobuf-conventions.gradle.kts +++ b/conventions/src/main/kotlin/otel.protobuf-conventions.gradle.kts @@ -10,6 +10,10 @@ protobuf { protoc { // The artifact spec for the Protobuf Compiler artifact = "com.google.protobuf:protoc:3.3.0" + if (osdetector.os == "osx") { + // Always use x86_64 version as ARM binary is not available + artifact += ":osx-x86_64" + } } plugins { id("grpc") {