From 8c166d747c02ceed3c7791d4e44354398f7f9ef7 Mon Sep 17 00:00:00 2001 From: Dongyang Li Date: Fri, 13 May 2022 10:23:44 +0800 Subject: [PATCH] Clean the version.sh file before build, otherwise the version information in the binary package produced by this compilation is still the commit id of the last time. (#9534) Co-authored-by: stephen --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index d3a76e802b..eb5aece5ae 100755 --- a/build.sh +++ b/build.sh @@ -266,6 +266,7 @@ FE_MODULES=$(IFS=, ; echo "${modules[*]}") # Clean and build Backend if [ ${BUILD_BE} -eq 1 ] ; then + if [ -e ${DORIS_HOME}/gensrc/build/gen_cpp/version.h ]; then rm -f ${DORIS_HOME}/gensrc/build/gen_cpp/version.h ; fi CMAKE_BUILD_TYPE=${BUILD_TYPE:-Release} echo "Build Backend: ${CMAKE_BUILD_TYPE}" CMAKE_BUILD_DIR=${DORIS_HOME}/be/build_${CMAKE_BUILD_TYPE}