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] Compilation failed due to missing providers in reexport_providers.bzl #261

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

Comments

@sgowroji
Copy link
Member

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4156#019236d0-9f78-4521-9972-646ceedd99d4

Platform: MacOS

Logs:

 ERROR: /Users/buildkite/builds/bk-macos-arm64-08fl/bazel-org-repo-root/rules_android/rules/reexport_providers.bzl:24:28: name 'AndroidResourcesInfo' is not defined
(06:09:58) ERROR: /Users/buildkite/builds/bk-macos-arm64-08fl/bazel-org-repo-root/rules_android/rules/reexport_providers.bzl:25:22: name 'AndroidSdkInfo' is not defined
(06:09:58) ERROR: /Users/buildkite/builds/bk-macos-arm64-08fl/bazel-org-repo-root/rules_android/rules/reexport_providers.bzl:26:27: name 'AndroidManifestInfo' is not defined
(06:09:58) ERROR: /Users/buildkite/builds/bk-macos-arm64-08fl/bazel-org-repo-root/rules_android/rules/reexport_providers.bzl:27:25: name 'AndroidAssetsInfo' is not defined
(06:09:58) ERROR: /Users/buildkite/builds/bk-macos-arm64-08fl/bazel-org-repo-root/rules_android/rules/reexport_providers.bzl:28:22: name 'AndroidIdeInfo' is not defined
(06:09:58) WARNING: Target pattern parsing failed.
(06:09:58) ERROR: Skipping '//rules/...': error loading package under directory 'rules': error loading package 'rules/flags': at /Users/buildkite/builds/bk-macos-arm64-08fl/bazel-org-repo-root/rules_android/rules/flags/flags.bzl:16:6: at /Users/buildkite/builds/bk-macos-arm64-08fl/bazel-org-repo-root/rules_android/rules/utils.bzl:17:6: at /Users/buildkite/builds/bk-macos-arm64-08fl/bazel-org-repo-root/rules_android/rules/providers.bzl:16:6: compilation of module 'rules/reexport_providers.bzl' failed
(06:09:58) ERROR: error loading package under directory 'rules': error loading package 'rules/flags': at /Users/buildkite/builds/bk-macos-arm64-08fl/bazel-org-repo-root/rules_android/rules/flags/flags.bzl:16:6: at /Users/buildkite/builds/bk-macos-arm64-08fl/bazel-org-repo-root/rules_android/rules/utils.bzl:17:6: at /Users/buildkite/builds/bk-macos-arm64-08fl/bazel-org-repo-root/rules_android/rules/providers.bzl:16:6: compilation of module 'rules/reexport_providers.bzl' failed
(06:09:58) INFO: Elapsed time: 3.476s
(06:09:58) INFO: 0 processes.
(06:09:58) ERROR: Build did NOT complete successfully

Culprit:

Steps:

git clone https://github.com/bazelbuild/rules_android
git reset 2bcdf53f139b82edf0a7d00778b0aa60da34bcac  --hard
export USE_BAZEL_VERSION=dfba96d081091e1e17c4f2b9970e8f79fca1dce6
bazel build //rules/... 

CC Greenteam @mai93

@sgowroji
Copy link
Member Author

cc @ahumesky

@ahumesky
Copy link
Collaborator

reexport_providers.bzl has been deleted from rules_android, so looks like this needs to be updated to use latest rules_android from head

@armandomontanez
Copy link

armandomontanez commented Oct 22, 2024

This bug seems to prevent my project from being able to use Bazel 8.0.0rc1. It sounds like we just need a new release cut at this point that captures changes that fixed this?

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