[chore] Download apache orc source code from github if git does not work in build.sh. (#18625)
* [chore] Download apache orc source code from github if git does not work in build.sh.
* add cd "${DORIS_HOME}"
* Fix blank issue.
This commit is contained in:
10
build.sh
10
build.sh
@ -247,9 +247,17 @@ if [[ ! -f "${DORIS_THIRDPARTY}/installed/lib/libbacktrace.a" ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ! -f "${DORIS_HOME}/be/src/apache-orc/README.md " ]]; then
|
||||
if [[ ! -f "${DORIS_HOME}/be/src/apache-orc/README.md" ]]; then
|
||||
echo "apache-orc not exists, need to update submodules ..."
|
||||
set +e
|
||||
cd "${DORIS_HOME}"
|
||||
git submodule update --init --recursive
|
||||
exit_code=$?
|
||||
set -e
|
||||
if [[ "${exit_code}" -ne 0 ]]; then
|
||||
mkdir -p "${DORIS_HOME}/be/src/apache-orc"
|
||||
curl -L https://github.com/apache/doris-thirdparty/archive/refs/heads/orc.tar.gz | tar -xz -C "${DORIS_HOME}/be/src/apache-orc" --strip-components=1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "${CLEAN}" -eq 1 && "${BUILD_BE}" -eq 0 && "${BUILD_FE}" -eq 0 && "${BUILD_SPARK_DPP}" -eq 0 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user