]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commit
build: Include 'swiftlint' location in the PATH before invoking it
authorRoopesh Chander <roop@roopc.net>
Mon, 2 Aug 2021 08:11:52 +0000 (13:41 +0530)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 22 Sep 2021 04:58:14 +0000 (06:58 +0200)
commit3668f3af9f56ab340fe7ea88b55f60383c5242cc
tree75e7dc0e5bb20e20bcde17ff7f8befc490186eb6
parent54697a3240faa401fc855d0a5a7d736b50f047be
build: Include 'swiftlint' location in the PATH before invoking it

In macOS 11, HomeBrew installs swiftlint under /opt/homebrew, which is not
in the default path that Xcode seems to use. So we include the PATH
to contain:

  - /usr/local/bin:

    Where HomeBrew installs 'swiftlint' in macOS 10.15 and earlier

  - /opt/homebrew/bin:

    Where HomeBrew installs 'swiftlint' in macOS 11

Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard.xcodeproj/project.pbxproj