ghcup: /usr/local/.ghcup: createDirectory: permission denied (Permission denied)
Why ghcup tries to create that directory.
This happens on CI with ghcup -v list. I see just
ghcup: /usr/local/.ghcup: createDirectory: permission denied (Permission denied)
without any other output, so -v flag doesn't help to figure out what ghcup tries to do, and why.
Figured out, there is GHCUP_INSTALL_BASE_PREFIX=/usr/local set on CI (for some reason, dont ask me).
Still I'd expected -v output to give me a hint of that.
https://github.com/actions/runner-images/blob/4bd4d1bbeb9f9e54aa01e4e2ee8adc0271844a63/images/ubuntu/scripts/build/install-haskell.sh#L13
Still I'd expected -v output to give me a hint of that.
We could do that. Seems like a simple PR