Skip to content

Commit

Permalink
detect bazel 0.15.0 in cache config script and add max connections flag
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTheElder committed Jun 29, 2018
1 parent 796d7cd commit d6cdefa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions images/bootstrap/create_bazel_cache_rcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ make_bazel_rc () {
local cache_id="$(get_workspace),$(hash_toolchains)"
local cache_url="http://${CACHE_HOST}:${CACHE_PORT}/${cache_id}"
echo "build --remote_http_cache=${cache_url}"
# specifically for bazel 0.15.0 we want to set this flag
# our docker image now sets BAZEL_VERSION with the bazel version as installed
# https://github.com/bazelbuild/bazel/issues/5047#issuecomment-401295174
if [[ -z "${BAZEL_VERSION+x}" && "${BAZEL_VERSION}" -eq "0.15.0" ]]; then
echo "build --remote_max_connections=200"
fi
}

# https://docs.bazel.build/versions/master/user-manual.html#bazelrc
Expand Down

0 comments on commit d6cdefa

Please sign in to comment.