From e9dea8d63c5dbf548c83715c7796e43cc993c278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Cumplido?= Date: Fri, 11 Oct 2024 04:17:09 +0200 Subject: [PATCH] GH-44373: [Packaging][Java] Fix brew link to Python 3.13 on macOS (#44374) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Rationale for this change Java-jars are currently failing on macOS to install Python 3.13 because `python@ 3.13` (`python` is an alias of `python@ 3.13` now) isn't installed yet. Our link failure workaround is updating already installed `python@*` with `--overwrite` explicitly. `python@ 3.13` (`python`) isn't installed on GitHub Actions runner yet. So `brew bundle` installs `python` without `--overwrite`. ### What changes are included in this PR? Install `python` with `--overwrite` explicitly before `brew bundle`. ### Are these changes tested? Via CI ### Are there any user-facing changes? No * GitHub Issue: #44373 Lead-authored-by: Sutou Kouhei Co-authored-by: Raúl Cumplido Signed-off-by: Sutou Kouhei --- dev/tasks/java-jars/github.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/dev/tasks/java-jars/github.yml b/dev/tasks/java-jars/github.yml index e9ee66a5353f2..a2c54b9d306c3 100644 --- a/dev/tasks/java-jars/github.yml +++ b/dev/tasks/java-jars/github.yml @@ -131,6 +131,7 @@ jobs: for python_package in $(brew list | grep python@); do brew install --overwrite ${python_package} done + brew install --overwrite python brew bundle --file=arrow/cpp/Brewfile # We want to link aws-sdk-cpp statically but Homebrew's