Closed
Description
At the moment, none of the new-build tests exercise the codepaths that install into the global store (.cabal/store
) in any meaningful way. This is bad (for example, #4015 can only be triggered by a package being installed into the global store), but it is a bit difficult to fix for a few reasons:
- Ideally, the
cabal-install
tests should be runnable offline, without needing to hit Hackage to download things - The
.cabal/store
is a big giant shared resource; we would need to ensure that we don't actually install into it to keep tests independent of each other - Minimal test-cases involve synthetic packages, but we don't want to be in the business of uploading dummy packages to Hackage just to test.
So it would seem that the only reasonable thing to do is to make sure we have some way of maintaining a separate local Hackage instance, which we can point cabal-install at, and make sure we have independent stores for each test. Probably needs a bit of jiggery pokery.
Maybe this will be easier to do when #3667 is fixed.