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

GHCup prints wrong cabal store path after removing GHC #888

Closed
openingnow opened this issue Sep 26, 2023 · 4 comments
Closed

GHCup prints wrong cabal store path after removing GHC #888

openingnow opened this issue Sep 26, 2023 · 4 comments

Comments

@openingnow
Copy link
Contributor

cabalStore <- liftIO $ handleIO (\_ -> if isWindows then pure "C:\\cabal\\store" else pure "~/.cabal/store")

The path is ~/.local/state/cabal/store since cabal 3.10.

@chreekat
Copy link
Contributor

Nice catch! Would you like to try fixing it?

@openingnow
Copy link
Contributor Author

openingnow commented Sep 27, 2023

@chreekat I guess there are 2 ways to fix this.

  1. Simply change the hardcoded string to ~/.cabal/store or ~/.local/state/cabal/store (and then finally change to the latter one when cabal<=3.8 is no longer supported)
  2. Show different paths depending on the activated cabal version

If the second one is needed, it's beyond my capabilities.

@hasufell
Copy link
Member

My suggestion would be to inform the user about both PATHs. Let's not get into the business of guessing user config and the cabal version they use. It's hard.

@openingnow
Copy link
Contributor Author

resolved #890

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

3 participants