Skip to content

kokoro: Avoid brew on Mac OS (v1.81.x backport)#12869

Merged
shivaspeaks merged 1 commit into
grpc:v1.81.xfrom
shivaspeaks:backport-1.81-macos-rm-temurin@8
Jun 18, 2026
Merged

kokoro: Avoid brew on Mac OS (v1.81.x backport)#12869
shivaspeaks merged 1 commit into
grpc:v1.81.xfrom
shivaspeaks:backport-1.81-macos-rm-temurin@8

Conversation

@shivaspeaks

Copy link
Copy Markdown
Member

Backport of #12846 to v1.81.x.

brew is failing with "Error: undefined method 'first' for nil" when trying to upgrade itself. We already use Java 11 on other platforms, and it is already available on the Kokoro machines. We swap to download Maven just like we do for Linux, so then we can avoid brew entirely.

However, the pre-installed Java is an arm build whereas the brew install was x86. So now the examples try to use
protoc-gen-grpc-java-1.82.0-SNAPSHOT-osx-aarch_64.exe which don't exist because we used the default ARCH of x86_64. So now we also need to swap the primary platform on OS X to aarch_64 and copy the x86_64 binaries from that.

CC @shivaspeaks, feel free to review, since you worked on the universal binaries

brew is failing with "Error: undefined method 'first' for nil" when
trying to upgrade itself. We already use Java 11 on other platforms, and
it is already available on the Kokoro machines. We swap to download
Maven just like we do for Linux, so then we can avoid brew entirely.

However, the pre-installed Java is an arm build whereas the brew install
was x86. So now the examples try to use
protoc-gen-grpc-java-1.82.0-SNAPSHOT-osx-aarch_64.exe which don't exist
because we used the default ARCH of x86_64. So now we also need to swap
the primary platform on OS X to aarch_64 and copy the x86_64 binaries
from that.
@shivaspeaks shivaspeaks merged commit 6b079b7 into grpc:v1.81.x Jun 18, 2026
15 of 17 checks passed
@shivaspeaks shivaspeaks deleted the backport-1.81-macos-rm-temurin@8 branch June 18, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants