haskell / ghcup-hs

https://www.haskell.org/ghcup/
GNU Lesser General Public License v3.0
272 stars 82 forks source link

xattr: [Errno 13] Permission denied #1122

Open Bodigrim opened 3 weeks ago

Bodigrim commented 3 weeks ago
$ ghcup compile hls -g master --ghc 9.6.6
[ Info  ] Fetching git repo https://github.com/haskell/haskell-language-server.git at ref master (this may take a while)
xattr: [Errno 13] Permission denied: '/Users/andrew/.ghcup/tmp/ghcup-9227a1f7edee3d97/.git/objects/pack/pack-24eb3563210c34b7b919d3568fc9c1c1e57826f1.pack'
xattr: [Errno 13] Permission denied: '/Users/andrew/.ghcup/tmp/ghcup-9227a1f7edee3d97/.git/objects/pack/pack-24eb3563210c34b7b919d3568fc9c1c1e57826f1.idx'
[ Warn  ] [GHCup-00841] Process "/usr/bin/xattr" with arguments ["-r", "-d",
[ ...   ]                                          "com.apple.quarantine",
[ ...   ]                                          "/Users/andrew/.ghcup/tmp/ghcup-9227a1f7edee3d97"] failed with exit code 1.
[ Info  ] Examining git ref master
[ ...   ]   HLS version (from cabal file): 2.9.0.1
[ ...   ]   branch: master
[ ...   ]   commit hash: 225375293ddbd1710a16baf3dab9732cd6689497
[ Info  ] Building HLS 2.9.0.1 for GHC version 9.6.6
...keeps building...

macOS Ventura 13.0.1, M2.

Is /usr/bin/xattr failure of any significance?

hasufell commented 3 weeks ago

It's doing a hack to work around the provisioning stuff, which no one understands.

This used to be required to not get errors during installation. If your installation works regardless, then I guess we're just lucky.

hasufell commented 3 weeks ago

It's doing a hack to work around the provisioning stuff, which no one understands.

Pardon, I meant notarization.

https://gitlab.haskell.org/ghc/ghc/-/issues/17418