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

Cannot find store (XDG, ghcup ghc) #108

Open
hseg opened this issue Jan 8, 2025 · 2 comments
Open

Cannot find store (XDG, ghcup ghc) #108

hseg opened this issue Jan 8, 2025 · 2 comments
Labels

Comments

@hseg
Copy link

hseg commented Jan 8, 2025

Trying to generate a license report fails because cabal-plan looks in the
wrong location. Half of the problem is due to
haskell-CI/haskell-ci#655, but I'm working around that
as mentioned there. The other half, though, seems to be due to my
ghcup-vendored ghc writing its Cabal store under ghc-9.8.4-c895, whereas
cabal-plan expects to find it under ../store/ghc-9.8.4/.

@hseg
Copy link
Author

hseg commented Jan 8, 2025

I've asked help in re the second part on
IRC
.
It appears we need to find the unit ID of ghc, as given by ghc-pkg field ghc id. I don't know how one does that from within Haskell code, though, but at
least I thought I'd give this start.

@phadej
Copy link
Collaborator

phadej commented Jan 8, 2025

The latter part is unfortunate. cabal-plan cannot do it atm: haskell/cabal#10726

Use older GHC for now.


It appears we need to find the unit ID of ghc,

cabal-plan json cannot. Either the information must be in plan.json, or the path to corresponding GHC should be passed in addition to cabal-plan. I don't like doing the latter. But for former to work, cabal-install needs to be changed first.

@phadej phadej added the blocked label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants