bazel cquery fails with missing BUILD file errors
- Dominant language
- C++
- Stars
- 28.9k
- Forks
- 5.6k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 428
Description
*Title*:
bazel cquery fails with missing BUILD file errors
*Description*:
Any invocation of `bazel cquery` fails because bazel believes there are missing BUILD files.
*Repro steps*:
```
y$ bazel cquery 'kind("cc_library", //...)'
INFO: Invocation ID: 8cfd8140-996b-4f48-956d-1f3af9a936bc
DEBUG: /home/jpeach/.cache/bazel/_bazel_jpeach/af5610e61ef13740f13f753f9b95f927/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /home/jpeach/.cache/bazel/_bazel_jpeach/af5610e61ef13740f13f753f9b95f927/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /home/jpeach/.cache/bazel/_bazel_jpeach/af5610e61ef13740f13f753f9b95f927/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /home/jpeach/.cache/bazel/_bazel_jpeach/af5610e61ef13740f13f753f9b95f927/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /home/jpeach/.cache/bazel/_bazel_jpeach/af5610e61ef13740f13f753f9b95f927/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /home/jpeach/.cache/bazel/_bazel_jpeach/af5610e61ef13740f13f753f9b95f927/external/bazel_toolchains/rules/rbe_repo.bzl:492:10: Bazel 4.1.0 is used in rbe_ubuntu_clang.
ERROR: /home/jpeach/upstream/envoy/bazel/toolchains/BUILD:3:9: in exec_properties attribute of platform rule //bazel/toolchains:rbe_ubuntu_clang_platform: Platform specifies remote_execution_properties but its parent specifies exec_properties. Prefer exec_properties over the deprecated remote_execution_properties.
ERROR: Analysis of target '//bazel/toolchains:rbe_ubuntu_clang_platform' failed; build aborted: Analysis of target '//bazel/toolchains:rbe_ubuntu_clang_platform' failed
INFO: Elapsed time: 1.449s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (574 packages loaded, 64 targets configured)
```
*Config*:
```
$ bazel version
Bazelisk version: v1.8.1
Build label: 4.1.0
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri May 21 11:11:34 2021 (1621595494)
Build timestamp: 1621595494
Build timestamp as int: 1621595494
```
Contributor guide
Assessment
This issue has not been assessed yet.