Skip to content

Commit

Permalink
apacheGH-38449: [Release][Go][macOS] Use local test data if possible (a…
Browse files Browse the repository at this point in the history
…pache#38450)

### 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: apache#38449

Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
  • Loading branch information
kou authored and JerAguilon committed Oct 25, 2023
1 parent 2385458 commit 284f55c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/release/verify-release-candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down

0 comments on commit 284f55c

Please sign in to comment.