Skip to content

Commit 9fb78ee

Browse files
hvrphadej
authored andcommitted
Fix spec-ver lower-bound for some 3.0 fields in cabal check
These are only supported properly starting with cabal-version:3.0 (which has been enforced by Hackage as well -- via this very patch). See haskell#6033 for details
1 parent ee1f82c commit 9fb78ee

File tree

1 file changed

+2
-2
lines changed
  • Cabal/Distribution/PackageDescription

1 file changed

+2
-2
lines changed

Cabal/Distribution/PackageDescription/Check.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ checkCabalVersion pkg =
12871287
[ prettyShow (Dependency name (eliminateMajorBoundSyntax versionRange) Set.empty)
12881288
| Dependency name versionRange _ <- depsUsingMajorBoundSyntax ]
12891289

1290-
, checkVersion [2,1] (any (not . null)
1290+
, checkVersion [3,0] (any (not . null)
12911291
(concatMap buildInfoField
12921292
[ asmSources
12931293
, cmmSources
@@ -1296,7 +1296,7 @@ checkCabalVersion pkg =
12961296
PackageDistInexcusable $
12971297
"The use of 'asm-sources', 'cmm-sources', 'extra-bundled-libraries' "
12981298
++ " and 'extra-library-flavours' requires the package "
1299-
++ " to specify at least 'cabal-version: >= 2.1'."
1299+
++ " to specify at least 'cabal-version: 3.0'."
13001300

13011301
, checkVersion [2,5] (any (not . null) $ buildInfoField extraDynLibFlavours) $
13021302
PackageDistInexcusable $

0 commit comments

Comments
 (0)