Skip to content

Story for new-build tests into the global store #4016

Closed
@ezyang

Description

@ezyang

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:

  1. Ideally, the cabal-install tests should be runnable offline, without needing to hit Hackage to download things
  2. 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
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions