From c914a284ded419f126d279cf7556f9030b50f2a4 Mon Sep 17 00:00:00 2001 From: Romain Ruetschi <106849+romac@users.noreply.github.com> Date: Tue, 3 Oct 2023 09:25:16 +0200 Subject: [PATCH] Use absolute path to `/usr/bin/xattr` instead of pulling whatever is in PATH On macOS systems with Homebrew installed, the latter will install its own copy of `xattr` in `/opt/homebrew/bin/xattr` which will often take precedence over the system `xattr` at `/usr/bin/xattr`, and does not support the `-r` flag to act recursively over a directory. This commit changes the invocation of `xattr` to use the absolute path to the system version of `xattr` at `/usr/bin/xattr`. --- lib/GHCup/Utils.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/GHCup/Utils.hs b/lib/GHCup/Utils.hs index 099e5d2..4c5284d 100644 --- a/lib/GHCup/Utils.hs +++ b/lib/GHCup/Utils.hs @@ -1081,7 +1081,7 @@ darwinNotarization :: (MonadReader env m, HasDirs env, MonadIO m) -> FilePath -> m (Either ProcessError ()) darwinNotarization Darwin path = exec - "xattr" + "/usr/bin/xattr" ["-r", "-d", "com.apple.quarantine", path] Nothing Nothing