From 284f55c4a20f0dd14e017338329b0ba2ec5dd888 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Wed, 25 Oct 2023 18:03:09 +0900 Subject: [PATCH] GH-38449: [Release][Go][macOS] Use local test data if possible (#38450) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Rationale for this change On macOS, "cp -a source/ destination/" copies "source/*" to "destination/" (such as "source/a" is copied to "destination/a") not "source/" to "destination/" (such as "source/a" is copied to "destination/source/a"). ### What changes are included in this PR? We need to remove the trailing "/" from "source/" to copy "source/" itself to "destination/source/". ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * Closes: #38449 Authored-by: Sutou Kouhei Signed-off-by: Raúl Cumplido --- dev/release/verify-release-candidate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.sh index 287c557fb5ef4..49997fbf4ea91 100755 --- a/dev/release/verify-release-candidate.sh +++ b/dev/release/verify-release-candidate.sh @@ -962,7 +962,7 @@ ensure_source_directory() { # Ensure that the testing repositories are prepared if [ ! -d ${ARROW_SOURCE_DIR}/testing/data ]; then if [ -d ${SOURCE_DIR}/../../testing/data ]; then - cp -a ${SOURCE_DIR}/../../testing/ ${ARROW_SOURCE_DIR}/ + cp -a ${SOURCE_DIR}/../../testing ${ARROW_SOURCE_DIR}/ else git clone \ https://github.com/apache/arrow-testing.git \ @@ -972,7 +972,7 @@ ensure_source_directory() { if [ ! -d ${ARROW_SOURCE_DIR}/cpp/submodules/parquet-testing/data ]; then if [ -d ${SOURCE_DIR}/../../cpp/submodules/parquet-testing/data ]; then cp -a \ - ${SOURCE_DIR}/../../cpp/submodules/parquet-testing/ \ + ${SOURCE_DIR}/../../cpp/submodules/parquet-testing \ ${ARROW_SOURCE_DIR}/cpp/submodules/ else git clone \