bazelbuild / bazelbuild/rules_android

Bug: ProguardMapping is not queryable nor deterministically generated

Open
#194 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
203
Forks
95
PR merge metrics
No merged PRs in 30d

Description

There is a bug in rules_android where the proguard_mapping file may not be reproduced. The root cause is that the proguard mapping file is not being explicitly declared as the output of the implicit target.

### Reproduction steps:

1) Build a Bazel binary that enables proguard mapping, enables disk, and remote cache
2) Run bazel clean --expunge
3) Rebuild the Bazel binary.
4) Observe the proguard mapping is not found at bazel-out/xplat-fastbuild/bin//_RESOURCES_DO_NOT_USE_proguard.map

Furthermore, there is no way to actually query this file. This is problematic because we will need to upload the obfuscated mapping when debugging/deobfuscating builds.

bazel cquery //:_RESOURCES_DO_NOT_USE --output files

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.