Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sgowroji opened this issue Sep 28, 2024 · 3 comments
Assignees

Comments

@sgowroji
Copy link
Member

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

Platform: MacOS

Logs:

ERROR: �[0m/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: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:25:34: name 'AndroidInstrumentationInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:26:28: name 'AndroidResourcesInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:27:29: name 'AndroidNativeLibsInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:28:38: name 'AndroidApplicationResourceInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:29:35: name 'AndroidBinaryNativeLibsInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:30:22: name 'AndroidSdkInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:31:27: name 'AndroidManifestInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:32:25: name 'AndroidAssetsInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:33:29: name 'AndroidLibraryAarInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:34:27: name 'AndroidProguardInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:35:22: name 'AndroidIdlInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:36:22: name 'AndroidIdeInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:37:28: name 'AndroidPreDexJarInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:38:31: name 'AndroidCcLinkParamsInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:39:25: name 'DataBindingV2Info' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:40:46: name 'AndroidLibraryResourceClassJarProvider' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:41:29: name 'AndroidFeatureFlagSet' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:42:27: name 'ProguardMappingInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:43:25: name 'AndroidBinaryData' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:44:31: name 'BaselineProfileProvider' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:45:41: name 'AndroidNeverLinkLibrariesProvider' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:46:31: name 'AndroidOptimizedJarInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:47:22: name 'AndroidDexInfo' is not defined
ERROR: �[0m/private/var/tmp/_bazel_buildkite/29c274063b18871d12d796a683608816/external/rules_android/rules/reexport_providers.bzl:48:31: name 'AndroidOptimizationInfo' is not defined
ERROR: �[0mError 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�[0m
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
Copy link
Collaborator

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

@ahumesky ahumesky self-assigned this Sep 30, 2024
@armandomontanez
Copy link

Quick update for anyone else blocked by this; it will take a little longer to sort out but work is underway.

@ahumesky
Copy link
Collaborator

ahumesky commented Nov 5, 2024

We're working on releasing rules_android 0.6.0 this week which should fix compatibility with bazel 8, then we can update the example app:

git_override(
module_name = "rules_android",
commit = "dd7b90c91fdc4edeca90ba9ebffa3c469b426a35",
remote = "https://github.com/bazelbuild/rules_android",
)

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

No branches or pull requests

3 participants