Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create 'ghcup healthcheck' command #701

Open
hasufell opened this issue Dec 4, 2022 · 7 comments
Open

Create 'ghcup healthcheck' command #701

hasufell opened this issue Dec 4, 2022 · 7 comments

Comments

@hasufell
Copy link
Member

hasufell commented Dec 4, 2022

Could check:

  • can download metadata
  • enough space available
  • ~/.ghcup/ghc/<ver> directories are not empty or missing files
  • for every ~/.ghcup/ghc/<ver> there is a ~/.ghcup/bin/ghc-<ver> symlink
  • ~/.ghcup/hls/<ver> directories are not empty or missing files
  • for every ~/.ghcup/hls/<ver> there is a ~/.ghcup/bin/haskell-language-server-wrapper-<ver> symlink
  • all tools can execute <tool> --version
@hasufell hasufell added this to the 0.1.19.0 milestone Dec 5, 2022
@hasufell hasufell removed this from the 0.1.19.0 milestone Jan 1, 2023
@arjunkathuria
Copy link
Contributor

This seems like a good idea, would help with first-step debugging when something fails for the end-users.

how do you feel about calling this ghcup doctor ?

@hasufell
Copy link
Member Author

hasufell commented Jan 7, 2023

healthcheck is the standard terminology for this kind of thing, so I wanna stick with that.

I think it's not that hard to implement.

@arjunkathuria
Copy link
Contributor

Yea, seems like it should be straight-forward. Is that checklist at the top exhaustive ?

@hasufell
Copy link
Member Author

hasufell commented Jan 7, 2023

It's a start

@arjunkathuria
Copy link
Contributor

We'll build it in a way that adding more checks should be trivial later. I'll look into it when i get a chance.

@hasufell
Copy link
Member Author

hasufell commented Jan 7, 2023

excellent!

@hasufell
Copy link
Member Author

One other major use case for this is:

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

No branches or pull requests

2 participants