Skip to content

Commit 54ce5f4

Browse files
committed
Lower library compatibility version to 1.25, since 1.25 is dev series for 2.0.
Signed-off-by: Edward Z. Yang <[email protected]>
1 parent 4fd559a commit 54ce5f4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cabal-install/Distribution/Client/ProjectPlanning.hs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ elaborateInstallPlan verbosity platform compiler compilerprogdb pkgConfigDB
11121112
-- Only non-Custom or sufficiently recent Custom
11131113
-- scripts can be build per-component.
11141114
= (fromMaybe PD.Custom (PD.buildType pd) /= PD.Custom)
1115-
|| PD.specVersion pd >= mkVersion [2,0,0]
1115+
|| PD.specVersion pd >= mkVersion [1,25,0]
11161116
-}
11171117

11181118
elab0 = elaborateSolverToCommon mapDep spkg
@@ -2357,9 +2357,7 @@ defaultSetupDeps compiler platform pkg =
23572357
-- breaking changes to the Cabal API that Setup.hs scripts use.
23582358
-- So for old custom Setup scripts that do not specify explicit
23592359
-- constraints, we constrain them to use a compatible Cabal version.
2360-
-- The exact version where we'll make this API break has not yet been
2361-
-- decided, so for the meantime we guess at 2.x.
2362-
cabalCompatMaxVer = mkVersion [2]
2360+
cabalCompatMaxVer = mkVersion [1,25]
23632361
-- In principle we can talk to any old Cabal version, and we need to
23642362
-- be able to do that for custom Setup scripts that require older
23652363
-- Cabal lib versions. However in practice we have currently have

0 commit comments

Comments
 (0)