bazel: Windows `repository_ctx.execute(command)` sometimes returns incomplete result
This is causing https://github.com/bazelbuild/bazel/issues/2434 and the internal Kokoro Windows Flakiness: missing “LIB”
Extracting Bazel installation...
................................
____Loading package: src
____Loading package: @bazel_tools//tools/cpp
____Loading package: @bazel_tools//tools/jdk
____Loading package: @local_config_xcode//
____Loading package: @local_jdk//
ERROR: in target '//external:cc_toolchain': no such package '@local_config_cc//': key "LIB" not found in dictionary.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (18 by maintainers)
I finally figure out the root cause, it’s <del>a one-liner fix</del>. I’ll send it soon.
Well, it turned out to be much more complicated that I thought. But yes! I have a fix under review, it will be fixed soon. https://bazel-review.googlesource.com/#/c/bazel/+/18790/