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

cabal should lint ~/.cabal/config for compat with selected GHC #1787

Open
cartazio opened this issue Apr 18, 2014 · 2 comments
Open

cabal should lint ~/.cabal/config for compat with selected GHC #1787

cartazio opened this issue Apr 18, 2014 · 2 comments
Labels
old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 type: enhancement
Milestone

Comments

@cartazio
Copy link
Contributor

With GHC 7.8, we need shared: True in the cabal config. However, historically shared: False has been explicitly set in people's cabal configs for various reasons.

This is actually a really really recurrent problem as people upgrade to GHC 7.8 and cabal 1.18, and I have to suggest rm ~/.cabal/config ; cabal update as my quick fix for folks.

It would be really nice (and best) if on systems that need dynamic too / shared / etc, if cabal install would holler "shared: False is possibly a problem" or the like.

Maybe there should be a "cabal doctor" or "cabal lint", I just want to not have this gotcha be in my support load.

@kvanbere
Copy link

Can confirm that this is kind of an issue with Windows where if you upgrade cabal to a newer one (from the HP versions) a lot of things break, including package lists corrupting, parallel builds not happening and other issues.

Nuking cabal config fixes it, but it'd be nice if automatically chose better defaults or something.

@tibbe
Copy link
Member

tibbe commented Apr 18, 2014

I think cabal should check for these problems whenever it reads the config file and print a warning.

@ttuegel ttuegel added this to the _|_ milestone Apr 24, 2015
@andreabedini andreabedini added the old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 type: enhancement
Projects
None yet
Development

No branches or pull requests

6 participants