-
Notifications
You must be signed in to change notification settings - Fork 721
Closed
Labels
cabal-install: v2-build systemAffecting v2-build and related commands that use v2-architecture (aka "nix local builds").Affecting v2-build and related commands that use v2-architecture (aka "nix local builds").type: discussion
Milestone
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-installtests should be runnable offline, without needing to hit Hackage to download things - The
.cabal/storeis 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.
Metadata
Metadata
Assignees
Labels
cabal-install: v2-build systemAffecting v2-build and related commands that use v2-architecture (aka "nix local builds").Affecting v2-build and related commands that use v2-architecture (aka "nix local builds").type: discussion