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

Support reinstalling stack hook #429

Closed
hasufell opened this issue Oct 2, 2022 · 6 comments
Closed

Support reinstalling stack hook #429

hasufell opened this issue Oct 2, 2022 · 6 comments

Comments

@hasufell
Copy link
Member

hasufell commented Oct 2, 2022

In GitLab by @brandonchinn178 on Oct 2, 2022, 08:17

Sometimes I like to nuke ~/.stack and rebuild it, but I can't seem to get ghcup to reinstall the stack hook. I can do it manually for now, but it'd be nice to have some option for ghcup to do it

@hasufell
Copy link
Member Author

hasufell commented Oct 4, 2022

In GitLab by @maerwald on Oct 4, 2022, 11:26

Reinstalling stack hook works like this:

  1. rm ~/.stack/hooks/ghc-install.sh
  2. curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

The bootstrap script can be re-run at any given time.

@hasufell
Copy link
Member Author

hasufell commented Oct 4, 2022

In GitLab by @brandonchinn178 on Oct 4, 2022, 11:34

Yes, I understand. I could also manually redownload ghc-install.sh from tbe ghcup repo. But I think it'd be nice to provide a ghcup command to reinstall hooks. And/or mention in the docs that the bootstrap command is idempotent and can be run multiple times.

@hasufell
Copy link
Member Author

hasufell commented Oct 8, 2022

In GitLab by @maerwald on Oct 8, 2022, 21:21

And/or mention in the docs that the bootstrap command is idempotent and can be run multiple times.

Screenshot_2022-10-08_21-19-32

@hasufell
Copy link
Member Author

hasufell commented Oct 8, 2022

In GitLab by @brandonchinn178 on Oct 9, 2022, 24:47

I mean in the web docs. I'm not going to rerun the curl/sh command if I don't remember that it pauses/is rerunnable

@hasufell
Copy link
Member Author

hasufell commented Oct 9, 2022

In GitLab by @maerwald on Oct 9, 2022, 11:19

PR welcome.

@hasufell hasufell added this to the 0.1.19.0 milestone Dec 5, 2022
@hasufell
Copy link
Member Author

hasufell commented Jan 1, 2023

@hasufell hasufell closed this as completed Jan 1, 2023
arjunkathuria pushed a commit to arjunkathuria/ghcup-hs that referenced this issue Jan 7, 2023
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

1 participant