android / android/android-test

Update `CONTRIBUTING.md` to add `--noexperimental_check_desugar_deps` to build commands

Open
#1,470 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.2k
Forks
342
Avg merge
11h 29m
Merged PRs (30d)
2

Description

### Description

Seems like `--noexperimental_check_desugar_deps` is needed to build this repo, but this is not mentioned in the CONTRIBUTING.md

### Steps to Reproduce

If I run `build :axt_m2repository` or `test //core/javatests/... --spawn_strategy=local --host_force_python=PY2`
I run into this issue: https://github.com/bazelbuild/rules_android/issues/320

```
singlejar_cc_bin: external/remote_java_tools_linux/java_tools/src/tools/singlejar/singlejar_main.cc:27: Desugar checking not currently supported in Bazel.
```

Adding `--noexperimental_check_desugar_deps` works around it as described in https://github.com/bazelbuild/rules_android/issues/320

Contributor guide

Open the contributing guide

Research direction

Update CONTRIBUTING.md, focusing on the documented `build :axt_m2repository` and `test //core/javatests/... --spawn_strategy=local --host_force_python=PY2` commands. Verify the documentation includes `--noexperimental_check_desugar_deps` as required, and confirm the commands no longer produce the reported desugar-checking error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.