You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because all ACLs are enabled by default, this means any build with non-None proguard_specs fails with the below:
ERROR: /src/app/main/com/app/BUILD.bazel:230:15: in android_binary rule //src/app/main/com/app:app:
Traceback (most recent call last):
File "/private/var/tmp/_bazel_p/38fbac32ce3b415b3947148100343188/external/rules_android~/rules/android_binary/impl.bzl", line 1112, column 35, in impl
return processing_pipeline.run(ctx, java_package, _PROCESSING_PIPELINE)
File "/private/var/tmp/_bazel_p/38fbac32ce3b415b3947148100343188/external/rules_android~/rules/processing_pipeline.bzl", line 85, column 23, in _run
info = execute(ctx, **target_ctx)
File "/private/var/tmp/_bazel_p/38fbac32ce3b415b3947148100343188/external/rules_android~/rules/android_binary/impl.bzl", line 797, column 42, in _process_optimize
proguard_output_jar = ctx.outputs.proguard_jar
Error: No attribute 'proguard_jar' in outputs. Make sure you declared a rule output with this name.
The text was updated successfully, but these errors were encountered:
pswaminathan
added a commit
to pswaminathan/rules_android
that referenced
this issue
Mar 6, 2025
To reproduce this, add a
select
orproguard_specs
to trigger processing optimizations.android_binary
impl can expect there to be outputs inctx.outputs
:rules_android/rules/android_binary/impl.bzl
Lines 790 to 792 in 59d7db6
But these outputs are only declared if not using R8 and
_generate_proguard_outputs
is True:rules_android/rules/android_binary/rule.bzl
Lines 43 to 53 in 59d7db6
Because all ACLs are enabled by default, this means any build with non-None
proguard_specs
fails with the below:The text was updated successfully, but these errors were encountered: