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] Build failed with errors: no native function or rule 'aar_import' #1139

Closed
sgowroji opened this issue May 15, 2024 · 1 comment · Fixed by #1149
Closed

[Bazel CI] Build failed with errors: no native function or rule 'aar_import' #1139

sgowroji opened this issue May 15, 2024 · 1 comment · Fixed by #1149

Comments

@sgowroji
Copy link

sgowroji commented May 15, 2024

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3858#018f7a6e-1b58-4ec1-a31d-6067bf5a3da1

Platform: Ubuntu

Logs:

ERROR: �[0mTraceback (most recent call last):
Error: no native function or rule 'aar_import'
ERROR: �[0mSkipping '//tests/integration/override_targets:override_targets': Error evaluating '//tests/integration/override_targets:override_targets': error loading package 'tests/integration/override_targets': Package 'tests/integration/override_targets' contains errors
ERROR: �[0mError evaluating '//tests/integration/override_targets:override_targets': error loading package 'tests/integration/override_targets': Package 'tests/integration/override_targets' contains errors

Culprit: bazelbuild/bazel@947c72d

Steps:

 git clone https://github.com/bazelbuild/rules_jvm_external
git reset 0dfbe26a16f78d4669c8c11b2f0d79da8c086062  --hard
export USE_BAZEL_VERSION=88a230f4cf28deec1455cb2caed4dc9f81e108c9
bazel test //tests/integration/override_targets:override_targets 

CC Greenteam @fweikert

@sgowroji
Copy link
Author

CC @ahumesky @ted-xie

ahumesky added a commit to ahumesky/rules_jvm_external that referenced this issue May 23, 2024
…utomatically

if the version of Bazel used does not contain the native version of aar_import.

This also updates the version of rules_android to the latest commit, because
version 0.1.1 is basically just wrappers around the native versions of the rules.

This also disbles `--experimental_sibling_repository_layout` added in
bazel-contrib@b6631f9
because the latest rules_android uses protos in go, and there is a problem compiling protos in go
with `--experimental_sibling_repository_layout`: bazel-contrib/rules_go#3947

Fixes bazel-contrib#1139.
ahumesky added a commit to ahumesky/rules_jvm_external that referenced this issue Jul 9, 2024
…utomatically

if the version of Bazel used does not contain the native version of aar_import.

This also updates the version of rules_android to the latest commit, because
version 0.1.1 is basically just wrappers around the native versions of the rules.

This also disbles `--experimental_sibling_repository_layout` added in
bazel-contrib@b6631f9
because the latest rules_android uses protos in go, and there is a problem compiling protos in go
with `--experimental_sibling_repository_layout`: bazel-contrib/rules_go#3947

Fixes bazel-contrib#1139.
@jin jin closed this as completed in #1149 Aug 7, 2024
@jin jin closed this as completed in ba7310c Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant