Bug: ProguardMapping is not queryable nor deterministically generated

未关闭
#194 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 6 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
android, java
领域
build-system

调研方向

首先跟踪 rules_android 中提到的隐式目标,并复现 issue 中描述的干净远程缓存构建。检查 proguard_mapping 输出是如何声明的,以及 bazel cquery //<app>:<target>_RESOURCES_DO_NOT_USE --output files 如何报告它;完成的标准是重建后该 mapping 可复现且可查询。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Java
星标
205
派生
113
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

bazelbuild/rules_android 的其他 Issue

查看 bazelbuild/rules_android 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。