From c486779997ccd5e897e6de0a6d969b891bcda97b Mon Sep 17 00:00:00 2001 From: Peter Mattis Date: Tue, 21 Apr 2020 19:47:14 -0400 Subject: [PATCH] build: map in the full teamcity alternates directory Release note: None --- build/builder.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/build/builder.sh b/build/builder.sh index 21540aaee008..7d65f534dde0 100755 --- a/build/builder.sh +++ b/build/builder.sh @@ -120,10 +120,15 @@ vols="${vols} --volume=${HOME}/.yarn-cache:${container_home}/.yarn-cache${cached # If we're running in an environment that's using git alternates, like TeamCity, # we must mount the path to the real git objects for git to work in the container. -alternates_file=${cockroach_toplevel}/.git/objects/info/alternates -if test -e "${alternates_file}"; then - alternates_path=$(cat "${alternates_file}") - vols="${vols} --volume=${alternates_path}:${alternates_path}${cached_volume_mode}" +# alternates_file=${cockroach_toplevel}/.git/objects/info/alternates +# if test -e "${alternates_file}"; then +# alternates_path=$(cat "${alternates_file}") +# vols="${vols} --volume=${alternates_path}:${alternates_path}${cached_volume_mode}" +# fi + +teamcity_alternates="/home/agent/system/git/" +if test -d "${teamcity_alternates}"; then + vols="${vols} --volume=${teamcity_alternates}:${teamcity_alternates}${cached_volume_mode}" fi backtrace_dir=${cockroach_toplevel}/../../cockroachlabs/backtrace