From 4bb95eedf3acf2a02320776675dd30bb70bca021 Mon Sep 17 00:00:00 2001 From: "jinli.zjw" Date: Fri, 24 Jul 2026 10:11:34 +0800 Subject: [PATCH 1/2] style: apply cmake-format to examples --- examples/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 385b482d..05bdee19 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -37,7 +37,8 @@ if(TARGET Arrow::arrow_shared) elseif(TARGET Arrow::arrow_static) set(PAIMON_EXAMPLE_ARROW_TARGET Arrow::arrow_static) else() - message(FATAL_ERROR "Neither Arrow::arrow_shared nor Arrow::arrow_static is available") + message(FATAL_ERROR "Neither Arrow::arrow_shared nor Arrow::arrow_static is available" + ) endif() add_executable(read_write_demo read_write_demo.cpp) From 9af9938fc9425a2f896bfd858f86b3f4a0cbd7c7 Mon Sep 17 00:00:00 2001 From: "jinli.zjw" Date: Fri, 24 Jul 2026 10:19:43 +0800 Subject: [PATCH 2/2] fix: make release version parsing portable --- scripts/releasing/create_source_release.sh | 3 +-- scripts/releasing/verify_release_candidate.sh | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/releasing/create_source_release.sh b/scripts/releasing/create_source_release.sh index fb0345a7..f65ae2b2 100755 --- a/scripts/releasing/create_source_release.sh +++ b/scripts/releasing/create_source_release.sh @@ -115,8 +115,7 @@ done CMAKE_VERSION=$( git -C "${SOURCE_ROOT}" show "${GIT_REF}:CMakeLists.txt" | - sed -n 's/^[[:space:]]*VERSION[[:space:]]\+\([0-9][0-9.]*\).*$/\1/p' | - head -n 1 + awk '$1 == "VERSION" && $2 ~ /^[0-9]+\.[0-9]+\.[0-9]+$/ { print $2; exit }' ) [[ "${CMAKE_VERSION}" == "${RELEASE_VERSION}" ]] || fail "CMake version ${CMAKE_VERSION:-} does not match ${RELEASE_VERSION}" diff --git a/scripts/releasing/verify_release_candidate.sh b/scripts/releasing/verify_release_candidate.sh index cf6660d6..47274cfd 100755 --- a/scripts/releasing/verify_release_candidate.sh +++ b/scripts/releasing/verify_release_candidate.sh @@ -167,9 +167,8 @@ for required_file in LICENSE NOTICE CMakeLists.txt docs/source/conf.py; do done CMAKE_VERSION=$( - sed -n 's/^[[:space:]]*VERSION[[:space:]]\+\([0-9][0-9.]*\).*$/\1/p' \ - "${SOURCE_DIR}/CMakeLists.txt" | - head -n 1 + awk '$1 == "VERSION" && $2 ~ /^[0-9]+\.[0-9]+\.[0-9]+$/ { print $2; exit }' \ + "${SOURCE_DIR}/CMakeLists.txt" ) [[ "${CMAKE_VERSION}" == "${RELEASE_VERSION}" ]] || fail "CMake version ${CMAKE_VERSION:-} does not match ${RELEASE_VERSION}"