android-test icon indicating copy to clipboard operation
android-test copied to clipboard

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

Open yogurtearl opened this issue 3 years ago • 2 comments

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/bazel/issues/9342

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/bazel/issues/9342

yogurtearl avatar Aug 17 '22 03:08 yogurtearl

What bazel version are you using? This project's CI runs 'bazelisk build //:axt_m2repository which works'

Perhaps we should document to use bazelisk

brettchabot avatar Aug 25 '22 17:08 brettchabot

I am using bazelisk, which downloads bazel 4.2.2 to run this build.

yogurtearl avatar Aug 25 '22 18:08 yogurtearl