Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Do not swallow installation errors #134

Open
andreasabel opened this issue Dec 6, 2022 · 0 comments
Open

Do not swallow installation errors #134

andreasabel opened this issue Dec 6, 2022 · 0 comments

Comments

@andreasabel
Copy link
Member

Errors during installation e.g. via ghcup should be lifted to the user rather than swallowed, to enable debugging (e.g. to find out which prerequisites may be missing).

E.g. when attempting to install ghc-8.2.2 on ubuntu-22.04 (via ghcup), one sees only this:

[ Info  ] Unpacking: ghc-8.2.2-x86_64-deb8-linux.tar.xz to /home/runner/.ghcup/tmp/ghcup-6d11b83f58858e08
  [ Info  ] Installing GHC (this may take a while)
  
  [ Error ] Process "gmake" with arguments ["DESTDIR=/home/runner/.ghcup/tmp/ghcup-28ddbf5[38](https://github.com/andreasabel/unix/actions/runs/3624403077/jobs/6111349578#step:3:40)ab31e65",
  [ ...   ]                                 "install"] failed with exit code 2.
  [ Error ] Also check the logs in /home/runner/.ghcup/logs

https://github.com/andreasabel/unix/actions/runs/3624403077/jobs/6111349578#step:3:52

Lifted from: haskell/unix#266 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant