bazel-contrib / rules_jvm_external

Bazel rules to resolve, fetch and export Maven artifacts
Apache License 2.0
337 stars 256 forks source link

[Bazel CI] Errors loading package: 'android_library' and 'android_binary' are not defined #1262

Closed sgowroji closed 1 day ago

sgowroji commented 1 month ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4170#019255c7-940b-46c8-a7a2-be39f08a181f

Platform: Ubuntu

Logs:

ERROR: /var/lib/buildkite-agent/builds/bk-docker-qpvh/bazel-org-repo-root/rules_jvm_external/examples/simple/BUILD:1:1: name 'android_library' is not defined
ERROR: /var/lib/buildkite-agent/builds/bk-docker-qpvh/bazel-org-repo-root/rules_jvm_external/examples/simple/BUILD:12:1: name 'android_binary' is not defined
ERROR: package contains errors: 
ERROR: package contains errors: : name 'android_library' is not defined
ERROR: Skipping '//...': Error evaluating '//...': error loading package '': Package '' contains errors

Culprit:

Steps:

 git clone https://github.com/bazelbuild/rules_jvm_external
git reset 2deeda518cf1ccb847c6e188bb3bf7d3f6fb7496  --hard
export USE_BAZEL_VERSION=166eaa09f9cd31836df898ea236e1e0633a73b12
bazel build //... 

CC Greenteam @mai93

ahumesky commented 1 month ago

This is from the overall effort to remove the android rules from bazel, the work to update rules_jvm_external to Starlark rules_android is here: https://github.com/bazel-contrib/rules_jvm_external/pull/1215

jin commented 1 day ago

Closing as duplicate of https://github.com/bazel-contrib/rules_jvm_external/pull/1215