From 8329d4a44bad80494580728aec35ce64553e6c91 Mon Sep 17 00:00:00 2001 From: David Neto Date: Thu, 2 Feb 2023 13:20:28 -0500 Subject: [PATCH] kokoro: avoid git permissions issue that GN fails on In the docker build script that Kokoro runs, the directories are owned by a different user. Git complains about that and in the GN flow GN will error out. In this docker flow we don't care about that warning, so within the docker config set a git global option to ignore the issue. --- kokoro/linux-clang-gn/build-docker.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kokoro/linux-clang-gn/build-docker.sh b/kokoro/linux-clang-gn/build-docker.sh index 1035ab88..d00d2759 100755 --- a/kokoro/linux-clang-gn/build-docker.sh +++ b/kokoro/linux-clang-gn/build-docker.sh @@ -36,6 +36,10 @@ set -e # Fail on any error. set -x # Display commands being run. +# Disable git's "detected dubious ownership" error - kokoro checks out the repo +# with a different user, and we don't care about this warning. +git config --global --add safe.directory '*' + echo "Fetching external projects..." ./update_glslang_sources.py