bazelbuild / rules_android_ndk

Apache License 2.0
31 stars 15 forks source link

[Bazel CI] Bazel build error: reexport_providers.bzl: undefined providers #85

Open sgowroji opened 1 month ago

sgowroji commented 1 month ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4156#019236d0-93f4-4dc9-a742-c2b6729c5bea

Platform: MacOS

Logs:

ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:24:15: name 'ApkInfo' is not defined (did you mean 'PyInfo'?)
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:25:34: name 'AndroidInstrumentationInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:26:28: name 'AndroidResourcesInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:27:29: name 'AndroidNativeLibsInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:28:38: name 'AndroidApplicationResourceInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:29:35: name 'AndroidBinaryNativeLibsInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:30:22: name 'AndroidSdkInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:31:27: name 'AndroidManifestInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:32:25: name 'AndroidAssetsInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:33:29: name 'AndroidLibraryAarInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:34:27: name 'AndroidProguardInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:35:22: name 'AndroidIdlInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:36:22: name 'AndroidIdeInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:37:28: name 'AndroidPreDexJarInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:38:31: name 'AndroidCcLinkParamsInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:39:25: name 'DataBindingV2Info' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:40:46: name 'AndroidLibraryResourceClassJarProvider' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:41:29: name 'AndroidFeatureFlagSet' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:42:27: name 'ProguardMappingInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:43:25: name 'AndroidBinaryData' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:44:31: name 'BaselineProfileProvider' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:45:41: name 'AndroidNeverLinkLibrariesProvider' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:46:31: name 'AndroidOptimizedJarInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:47:22: name 'AndroidDexInfo' is not defined
ERROR: /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:48:31: name 'AndroidOptimizationInfo' is not defined
ERROR: Error computing the main repository mapping: at /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/rules.bzl:39:5: at /private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/providers.bzl:16:6: compilation of module 'rules/reexport_providers.bzl' failed
Error: The command exited with status 1
error: exit status 1

Culprit:

Steps:

 git clone https://github.com/bazelbuild/rules_android_ndk
git reset cb776db8e671084669f141d2003e1b61c1a7d21b  --hard
export USE_BAZEL_VERSION=dfba96d081091e1e17c4f2b9970e8f79fca1dce6
bazel build //java/com/app:app 

CC Greenteam @mai93

ahumesky commented 1 month ago

reexport_providers.bzl has been deleted from rules_android, so rules_android_ndk needs to be updated to use latest rules_android from head, I can take a look hopefully today