rules_xcodeproj icon indicating copy to clipboard operation
rules_xcodeproj copied to clipboard

Bug: ANDROID_NDK_HOME environment variable not inherited

Open pswaminathan opened this issue 2 years ago • 0 comments

Describe the bug

When including Android NDK repository in WORKSPACE without a path set, Bazel looks at the value of ANDROID_NDK_HOME. Xcode fails to build because it does not inherit this environment variable.

Reproduction steps

  1. Add an Android NDK repository rule, e.g.:
android_ndk_repository(
    name = "androidndk",
    api_level = 25,
)
  1. Set ANDROID_NDK_HOME envvar
  2. Run xcodeproj to generate project
  3. Launch Xcode pointed to rules_xcodeproj-generated project
  4. Fails at analysis

Expected behavior

Versions

  • Bazel: 6.0.0rc1
  • rules_xcodeproj: 0.10.2
  • rules_apple:
  • rules_swift:

Additional context

pswaminathan avatar Nov 17 '22 16:11 pswaminathan