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 9091c0b604 MINOR: [Release] Minor updates to post-release scripts 
(#47140)
9091c0b604 is described below

commit 9091c0b604615420bb3c6ca5a7502b97baac8020
Author: Bryce Mecum <[email protected]>
AuthorDate: Sat Jul 19 18:49:47 2025 -0700

    MINOR: [Release] Minor updates to post-release scripts (#47140)
    
    ### Rationale for this change
    
    Just doing some maintenance on post-release scripts.
    
    ### What changes are included in this PR?
    
    Updates two of our release scripts to make them work correctly.
    
    1. post-13-homebrew.sh: Homebrew changed their default branch to main 
recently, see https://github.com/Homebrew/homebrew-core/pull/228218.
    2. post-15-conan.sh: Makes the sed usage portable so it runs equally well 
on macOS.
    
    ### Are these changes tested?
    
    Yes. I ran them myself during the 21.0.0 post-release tasks.
    
    ### Are there any user-facing changes?
    
    No.
    
    Lead-authored-by: Bryce Mecum <[email protected]>
    Co-authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 dev/release/post-13-homebrew.sh |  2 +-
 dev/release/post-15-conan.sh    | 15 ++++++++++-----
 2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/dev/release/post-13-homebrew.sh b/dev/release/post-13-homebrew.sh
index fa73dd0d96..920c2e29ca 100755
--- a/dev/release/post-13-homebrew.sh
+++ b/dev/release/post-13-homebrew.sh
@@ -42,7 +42,7 @@ git fetch --all --prune --tags --force
 
 branch=apache-arrow-${version}
 echo "Creating branch: ${branch}"
-git checkout master
+git checkout main
 git branch -D ${branch} || :
 git checkout -b ${branch}
 
diff --git a/dev/release/post-15-conan.sh b/dev/release/post-15-conan.sh
index cb45e6b68b..45a23e515d 100755
--- a/dev/release/post-15-conan.sh
+++ b/dev/release/post-15-conan.sh
@@ -64,15 +64,20 @@ sha256sum=$(curl \
               cut -d' ' -f1)
 sed \
   -i.bak \
-  -e "1a\ \ \"${version}\":" \
-  -e "1a\ \ \ \ folder:\ all" \
+  -e "1a\\
+\  \"${version}\":" \
+  -e "1a\\
+\    folder:\ all" \
   ${recipes_arrow}/config.yml
 rm ${recipes_arrow}/config.yml.bak
 sed \
   -i.bak \
-  -e "1a\ \ \"${version}\":" \
-  -e "1a\ \ \ \ url: \"${tar_gz_url}\"" \
-  -e "1a\ \ \ \ sha256: \"${sha256sum}\"" \
+  -e "1a\\
+\  \"${version}\":" \
+  -e "1a\\
+\    url: \"${tar_gz_url}\"" \
+  -e "1a\\
+\    sha256: \"${sha256sum}\"" \
   ${recipes_arrow}/all/conandata.yml
 rm ${recipes_arrow}/all/conandata.yml.bak
 git add ${recipes_arrow}/config.yml

Reply via email to