bazelbuild / rules_android

Android rules for Bazel
Apache License 2.0
180 stars 44 forks source link

[Bazel CI] Compilation failed due to missing providers in `reexport_providers.bzl` #261

Open sgowroji opened 1 month ago

sgowroji commented 1 month ago

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 commented 1 month ago

cc @ahumesky

ahumesky commented 1 month ago

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 commented 1 month ago

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?