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

Fix discovery of ghc-pkg #99

Closed

Conversation

hasufell
Copy link
Contributor

@hasufell hasufell commented Oct 1, 2021

@hasufell
Copy link
Contributor Author

hasufell commented Oct 1, 2021

I'm not sure how portable this is for e.g. NixOS, but I also don't care. It will work for default bindists (anything installed via ghcup, stack and probably ubuntu ppa).

@phadej
Copy link
Owner

phadej commented Oct 1, 2021

I don't like this. I'd rather do #31 until ghc --info tells the location.

@hasufell
Copy link
Contributor Author

hasufell commented Oct 2, 2021

I don't have a strong-opinion, especially after cabal-store-gc busted my store, so I'm currently not using it anymore. But this issue could affect other binaries as well. cabal-install also has different logic to find ghc-pkg than cabal-extras.

@phadej
Copy link
Owner

phadej commented Oct 2, 2021

cabal-install also has different logic to find ghc-pkg than cabal-extras.

Which is (or at least was) broken, thus I didn't copy it.

@hasufell
Copy link
Contributor Author

hasufell commented Oct 2, 2021

Which is (or at least was) broken, thus I didn't copy it.

Yeah, well, cabal-extras is broken too.

@phadej
Copy link
Owner

phadej commented Oct 2, 2021

Yeah, well, cabal-extras is broken too.

It is, I know (#31). And this is not a fix I'd prefer. I'd rather be always specific about package databases.

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

Successfully merging this pull request may close these issues.

cabal-store-gc: ghc-pkg: Can't find package database in /home/hasufell/.ghcup/ghc/8.10.7/lib/ghc-8.10.7/lib
2 participants