ghcup-hs icon indicating copy to clipboard operation
ghcup-hs copied to clipboard

ghcup: /usr/local/.ghcup: createDirectory: permission denied (Permission denied)

Open phadej opened this issue 6 months ago • 4 comments

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.

phadej avatar Jul 06 '25 14:07 phadej

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.

phadej avatar Jul 06 '25 14:07 phadej

https://github.com/actions/runner-images/blob/4bd4d1bbeb9f9e54aa01e4e2ee8adc0271844a63/images/ubuntu/scripts/build/install-haskell.sh#L13

hasufell avatar Jul 06 '25 14:07 hasufell

Still I'd expected -v output to give me a hint of that.

phadej avatar Jul 06 '25 15:07 phadej

We could do that. Seems like a simple PR

hasufell avatar Jul 06 '25 15:07 hasufell