Skip to content

Null-out Android env for non-Android macos builds#1477

Open
ted-xie wants to merge 1 commit into
bazelbuild:mainfrom
ted-xie:no_android_macos
Open

Null-out Android env for non-Android macos builds#1477
ted-xie wants to merge 1 commit into
bazelbuild:mainfrom
ted-xie:no_android_macos

Conversation

@ted-xie

@ted-xie ted-xie commented Jun 16, 2026

Copy link
Copy Markdown

The Intel macos deployment in BazelCI does not have the latest Android build tools installed. By default, BazelCI adds ANDROID* environment variables to builds, which registers an Android toolchain for any transitively-loaded Android deps, which causes a repo rule-level error.

To prevent this, this PR nulls out the ANDROID* environment variables.

The Intel `macos` deployment in BazelCI does not have the latest Android build tools installed. By default, BazelCI adds `ANDROID*` environment variables to builds, which registers an Android toolchain for any transitively-loaded Android deps, which causes a repo rule-level error.

To prevent this, this PR nulls out the `ANDROID*` environment variables.
@ted-xie ted-xie requested a review from a team as a code owner June 16, 2026 19:51
@ted-xie ted-xie requested review from vladmos and removed request for a team June 16, 2026 19:51

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the .bazelci/presubmit.yml configuration to null out the ANDROID_HOME and ANDROID_NDK_HOME environment variables for the macos platform. The reviewer recommends also applying these environment variable overrides to the macos_arm64 platform to prevent similar CI failures on ARM64 macOS runners.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread .bazelci/presubmit.yml
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.

1 participant