Skip to content

Commit

Permalink
[macOS] Pin Swiftlint on macOS-12 due to Xcode 15.3 requirements (act…
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-bershel authored and RonaldLandheerCieslak-Eaton committed Jun 10, 2024
1 parent 0e8d599 commit 488b654
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions images/macos/scripts/build/install-swiftlint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ if is_BigSur; then
COMMIT=d1d5743344227fe6e3c37cfba19f0cfe15a9448a
FORMULA_URL="https://raw.githubusercontent.com/Homebrew/homebrew-core/$COMMIT/Formula/swiftlint.rb"

curl -fsSL $FORMULA_URL > $(find $(brew --repository) -name swiftlint.rb)
HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_FROM_API=1 brew install swiftlint
elif is_Monterey; then
# SwiftLint now requires Xcode 15.3 or higher to build https://github.com/realm/SwiftLint/releases/tag/0.55.1
COMMIT=d91dabd087cb0b906c92a825df9e5e5e1a4f59f8
FORMULA_URL="https://raw.githubusercontent.com/Homebrew/homebrew-core/$COMMIT/Formula/s/swiftlint.rb"

curl -fsSL $FORMULA_URL > $(find $(brew --repository) -name swiftlint.rb)
HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_FROM_API=1 brew install swiftlint
else
Expand Down

0 comments on commit 488b654

Please sign in to comment.