kythe.io@v0.0.68-0.20240422202219-7225dbc01741/tools/platforms/configs/rebuild.sh (about)

     1  #!/bin/bash
     2  # Rebuild the versions.bzl from the latest image and current minimum and maximum
     3  # bazel version.
     4  # This should be run if there is a new RBE image or the configuration changes.
     5  BAZEL_WORKSPACE="${BUILD_WORKSPACE_DIRECTORY?:Must be invoked via 'bazel run'}"
     6  
     7  exec "${RBE_GEN_CONFIG}" \
     8    --output_src_root="${BAZEL_WORKSPACE}" \
     9    --output_config_path="${OUTPUT_CONFIG_PATH?:Missing mandatory OUTPUT_CONFIG_PATH}" \
    10    --bazel_version="$(cat "${BAZEL_WORKSPACE}/.bazelversion")" \
    11    --toolchain_container=gcr.io/kythe-repo/kythe-builder:latest \
    12    --exec_os=linux --target_os=linux