Skip to content

Commit cf261bf

Browse files
committed
GH-47078: [Release] Ensure using cloned apache/arrow for reproducible check (#47079)
### Rationale for this change We need to use `dev/release/utils-create-release-tarball.sh` that exists in the target apache/arrow directory. ### What changes are included in this PR? Use `dev/release/utils-create-release-tarball.sh` in cloned apache/arrow. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * GitHub Issue: #47078 Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
1 parent ddbc3dc commit cf261bf

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dev/release/utils-create-release-tarball.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ tag=apache-arrow-${version}-rc${rc}
3939
root_folder=apache-arrow-${version}
4040
tarball=apache-arrow-${version}.tar.gz
4141

42-
: ${release_hash:=$(git rev-list --max-count=1 ${tag})}
42+
: ${release_hash:=$(git -C "${SOURCE_TOP_DIR}" rev-list --max-count=1 ${tag})}
4343

4444
rm -rf ${root_folder}
4545

@@ -110,7 +110,6 @@ gtar_options=(
110110
if [ -n "${SOURCE_DATE_EPOCH:-}" ]; then
111111
gtar_options+=(--mtime="$(date +%Y-%m-%dT%H:%M:%S --date=@${SOURCE_DATE_EPOCH})")
112112
fi
113-
set -x
114113
${gtar} \
115114
"${gtar_options[@]}" \
116115
-cf \

dev/release/verify-release-candidate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ ensure_source_directory() {
791791
fetch_archive ${dist_name}
792792
git clone https://github.com/${GITHUB_REPOSITORY}.git arrow
793793
pushd arrow
794-
"${SOURCE_DIR}/utils-create-release-tarball.sh" ${VERSION} ${RC_NUMBER}
794+
dev/release/utils-create-release-tarball.sh ${VERSION} ${RC_NUMBER}
795795
if ! cmp ${dist_name}.tar.gz ../${dist_name}.tar.gz; then
796796
echo "Source archive isn't reproducible"
797797
return 1

0 commit comments

Comments
 (0)