Use the wrapper version of bazel in the script

pull/23319/head
Esun Kim 5 years ago
parent 580b359b22
commit 34b210b44a
  1. 5
      src/abseil-cpp/preprocessed_builds.yaml.gen.py

@ -69,8 +69,11 @@ def parse_bazel_rule(elem, package):
def read_bazel_build(package):
"""Runs bazel query on given package file and returns all cc rules."""
# Use a wrapper version of bazel in gRPC not to use system-wide bazel
# to avoid bazel conflict when running on Kokoro.
BAZEL_BIN = "../../tools/bazel"
result = subprocess.check_output(
["bazel", "query", package + ":all", "--output", "xml"])
[BAZEL_BIN, "query", package + ":all", "--output", "xml"])
root = ET.fromstring(result)
return [
parse_bazel_rule(elem, package)

Loading…
Cancel
Save