Fix multi-repl closure computation with invalid Custom setup
commitf1c6bb4a373cca1bbf99d23578f7daba72325df3
authorMatthew Pickering <matthewtpickering@gmail.com>
Fri, 16 Feb 2024 15:08:02 +0000 (16 15:08 +0000)
committerMikolaj <281893+Mikolaj@users.noreply.github.com>
Thu, 22 Feb 2024 09:44:56 +0000 (22 09:44 +0000)
treea66b0630e0c0d9ac2e3d4e32e05de50029496df3
parent517ddc632bcada1af1961455a4626bdc998c7669
Fix multi-repl closure computation with invalid Custom setup

This patch deletes a lot of hairy logic to do with removing "bad" edges
from the closure. Now the solver just forces `Cabal >= 3.11` universally
when `--enable-multi-repl` is enabled.

Fixes #9710
19 files changed:
cabal-install/src/Distribution/Client/ProjectPlanning.hs
cabal-testsuite/PackageTests/MultiRepl/EnabledBadClosure/cabal.out [new file with mode: 0644]
cabal-testsuite/PackageTests/MultiRepl/EnabledBadClosure/cabal.project [new file with mode: 0644]
cabal-testsuite/PackageTests/MultiRepl/EnabledBadClosure/cabal.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/MultiRepl/EnabledBadClosure/pkg-a/Foo.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/MultiRepl/EnabledBadClosure/pkg-a/pkg-a.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/MultiRepl/EnabledBadClosure/pkg-b/Bar.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/MultiRepl/EnabledBadClosure/pkg-b/Setup.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/MultiRepl/EnabledBadClosure/pkg-b/pkg-b.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/MultiRepl/EnabledBadClosure/pkg-c/Quu.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/MultiRepl/EnabledBadClosure/pkg-c/pkg-c.cabal [new file with mode: 0644]
cabal-testsuite/PackageTests/NewBuild/CmdRepl/CustomSetup/cabal.out [new file with mode: 0644]
cabal-testsuite/PackageTests/NewBuild/CmdRepl/CustomSetup/cabal.project [new file with mode: 0644]
cabal-testsuite/PackageTests/NewBuild/CmdRepl/CustomSetup/cabal.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/NewBuild/CmdRepl/CustomSetup/foo/CHANGELOG.md [new file with mode: 0644]
cabal-testsuite/PackageTests/NewBuild/CmdRepl/CustomSetup/foo/LICENSE [new file with mode: 0644]
cabal-testsuite/PackageTests/NewBuild/CmdRepl/CustomSetup/foo/Setup.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/NewBuild/CmdRepl/CustomSetup/foo/app/Main.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/NewBuild/CmdRepl/CustomSetup/foo/foo.cabal [new file with mode: 0644]