Skip to content

Commit 0534eb2

Browse files
committed
GH-47071: [Release] Dereference all hard links in source archive (#47072)
### Rationale for this change Apache Rat doesn't like hard links. ### What changes are included in this PR? Use `tar --hard-dereference`. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * GitHub Issue: #47071 Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
1 parent f845b41 commit 0534eb2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/release_candidate.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
else
6363
version=$(grep '^set(ARROW_VERSION ' cpp/CMakeLists.txt | \
6464
grep -E -o '[0-9]+\.[0-9]+\.[0-9]+')
65-
rc_num=0
65+
rc_num=999
6666
git config user.name "github-actions[bot]"
6767
git config user.email "github-actions[bot]@users.noreply.github.com"
6868
git tag \
@@ -91,6 +91,7 @@ jobs:
9191
dev/release/utils-create-release-tarball.sh ${VERSION} ${RC_NUM}
9292
RELEASE_TARBALL=apache-arrow-${VERSION}.tar.gz
9393
echo "RELEASE_TARBALL=${RELEASE_TARBALL}" >> ${GITHUB_ENV}
94+
dev/release/run-rat.sh "${RELEASE_TARBALL}"
9495
dev/release/utils-generate-checksum.sh "${RELEASE_TARBALL}"
9596
if [ -n "${ARROW_GPG_SECRET_KEY}" ]; then
9697
echo "${ARROW_GPG_SECRET_KEY}" | gpg --import

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ else
103103
fi
104104
gtar_options=(
105105
--group=0 \
106+
--hard-dereference \
106107
--mode=a=rX,u+w \
107108
--numeric-owner \
108109
--owner=0 \

0 commit comments

Comments
 (0)