Fix build failure on M1 mac
MODIFY
conventions/src/main/kotlin/otel.protobuf-conventions.gradle.kts
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") {

Fix build failure on M1 mac (#6324)