add workaround in update-codegen.sh for problem seen when run on linux

This commit is contained in:
Ryan Richard 2023-09-11 12:52:14 -07:00
parent a7bd494ec3
commit 8faf3b0e26

View File

@ -40,6 +40,9 @@ if [[ "${#KUBE_VERSIONS[@]}" -ne 1 ]]; then
exit 1 exit 1
fi fi
# Add this to the git config inside the container to avoid permission errors when running this script on linux.
git config --global --add safe.directory /work
# Link the root directory into GOPATH since that is where output ends up. # Link the root directory into GOPATH since that is where output ends up.
GOPATH_ROOT="${GOPATH}/src/${BASE_PKG}" GOPATH_ROOT="${GOPATH}/src/${BASE_PKG}"
mkdir -p "$(dirname "${GOPATH_ROOT}")" mkdir -p "$(dirname "${GOPATH_ROOT}")"