You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2025/07/11 03:35:41 UTC
(arrow) branch main updated: GH-47071: [Release] Dereference all hard links in source archive (#47072)
This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 7a81be3563 GH-47071: [Release] Dereference all hard links in source archive (#47072)
7a81be3563 is described below
commit 7a81be35638324b3b3ca99a3231dd6a9b24a3add
Author: Sutou Kouhei <ko...@clear-code.com>
AuthorDate: Fri Jul 11 12:35:35 2025 +0900
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 <ko...@clear-code.com>
Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
.github/workflows/release_candidate.yml | 3 ++-
dev/release/utils-create-release-tarball.sh | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/release_candidate.yml b/.github/workflows/release_candidate.yml
index 14b38cab61..8121bcde85 100644
--- a/.github/workflows/release_candidate.yml
+++ b/.github/workflows/release_candidate.yml
@@ -62,7 +62,7 @@ jobs:
else
version=$(grep '^set(ARROW_VERSION ' cpp/CMakeLists.txt | \
grep -E -o '[0-9]+\.[0-9]+\.[0-9]+')
- rc_num=0
+ rc_num=999
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag \
@@ -91,6 +91,7 @@ jobs:
dev/release/utils-create-release-tarball.sh ${VERSION} ${RC_NUM}
RELEASE_TARBALL=apache-arrow-${VERSION}.tar.gz
echo "RELEASE_TARBALL=${RELEASE_TARBALL}" >> ${GITHUB_ENV}
+ dev/release/run-rat.sh "${RELEASE_TARBALL}"
dev/release/utils-generate-checksum.sh "${RELEASE_TARBALL}"
if [ -n "${ARROW_GPG_SECRET_KEY}" ]; then
echo "${ARROW_GPG_SECRET_KEY}" | gpg --import
diff --git a/dev/release/utils-create-release-tarball.sh b/dev/release/utils-create-release-tarball.sh
index c9b6754f38..2caf59a264 100755
--- a/dev/release/utils-create-release-tarball.sh
+++ b/dev/release/utils-create-release-tarball.sh
@@ -103,6 +103,7 @@ else
fi
gtar_options=(
--group=0 \
+ --hard-dereference \
--mode=a=rX,u+w \
--numeric-owner \
--owner=0 \