Closed ben-p-commits closed 2 years ago
I think you can just add to the path without testing it first. It makes no difference. And we don't really need the handholding.
This should be enough
PATH="/opt/homebrew/bin/:${PATH}"
swiftlint
@sindresorhus , updated per your comment.
I spent quite a while trying to fix this error. Was there some way I should have known about this? Otherwise perhaps we can improve the docs.
Add m1-friendly swiftlint script to build phase. Homebrew on mac silicon has a different installation path (opt/homebreow), so this catches both m1 and x86 scenarios.
This script came from an issue on the swiftlint repository.
Fixes #284