Skip to content

Commit b13d776

Browse files
DX-120970 Fix macOS: remove brew pin cmake/boost
brew pin cmake fails on newer Homebrew (runner >=20260525) because it resolves cmake via the API and hits the cmake cask instead of the formula. brew bundle --file=arrow/cpp/Brewfile was already working (cmake pre-installed on runner → "Using cmake"). The pins are not needed in CI since no brew upgrade runs after the local tap install.
1 parent 406a5ad commit b13d776

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

dev/tasks/java-jars/github.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ jobs:
125125
# llvm@14 because llvm is newer than llvm@14.
126126
brew uninstall llvm || :
127127
128-
# Newer Homebrew (runner >=20260525) resolves brew "cmake" to the cmake cask.
129-
# Skip cmake/boost here; they are installed below with pinned versions.
130-
HOMEBREW_BUNDLE_BREW_SKIP="cmake boost" brew bundle --file=arrow/cpp/Brewfile
128+
brew bundle --file=arrow/cpp/Brewfile
131129
# We want to link aws-sdk-cpp statically but Homebrew's
132130
# aws-sdk-cpp provides only shared library. If we have
133131
# Homebrew's aws-sdk-cpp, our build mix Homebrew's
@@ -155,8 +153,6 @@ jobs:
155153
cp ./homebrew-custom/Formula/*.rb "$(brew --repo local/homebrew-custom)/Formula/"
156154
brew install -v local/homebrew-custom/cmake
157155
brew install -v local/homebrew-custom/boost
158-
brew pin cmake
159-
brew pin boost
160156
#
161157
162158

0 commit comments

Comments
 (0)