Help us beta test “no-reinstall Cabal”
Over this summer, Vishal Agrawal has been working on a GSoC project to move Cabal to more Nix-like package management system. More simply, he is working to make it so that you'll never get one of these errors from cabal-install again:
Resolving dependencies... In order, the following would be installed: directory-220.127.116.11 (reinstall) changes: time-1.4.2 -> 1.5 process-18.104.22.168 (reinstall) extra-1.0 (new package) cabal: The following packages are likely to be broken by the reinstalls: process-22.214.171.124 hoogle-4.2.35 haskell98-126.96.36.199 ghc-7.8.3 Cabal-188.8.131.52 ...
However, these patches change a nontrivial number of moving parts in Cabal and cabal-install, so it would be very helpful to have willing guinea pigs to help us iron out some bugs before we merge it into Cabal HEAD. As your prize, you'll get to run "no-reinstall Cabal": Cabal should never tell you it can't install a package because some reinstalls would be necessary.
Here's how you can help:
- Make sure you're running GHC 7.10. Earlier versions of GHC have a hard limitation that doesn't allow you to reinstall a package multiple times against different dependencies. (Actually, it would be useful if you test with older versions of GHC 7.8, but only mostly to make sure we haven't introduced any regressions here.)
- git clone https://github.com/ezyang/cabal.git (I've added some extra corrective patches on top of Vishal's version in the course of my testing) and git checkout cabal-no-pks.
- In the Cabal and cabal-install directories, run cabal install.
- Try building things without a sandbox and see what happens! (When I test, I've tried installing multiple version of Yesod at the same time.)
It is NOT necessary to clear your package database before testing. If you completely break your Haskell installation (unlikely, but could happen), you can do the old trick of clearing out your .ghc and .cabal directories (don't forget to save your .cabal/config file) and rebootstrapping with an old cabal-install.
Please report problems here, or to this PR in the Cabal tracker. Or chat with me in person next week at ICFP. :)