Skip to content

Commit b7cd00b

Browse files
committed
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 #6033 for details
1 parent 2ee5594 commit b7cd00b

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
@@ -1261,7 +1261,7 @@ checkCabalVersion pkg =
12611261
[ display (Dependency name (eliminateMajorBoundSyntax versionRange))
12621262
| Dependency name versionRange <- depsUsingMajorBoundSyntax ]
12631263

1264-
, checkVersion [2,1] (any (not . null)
1264+
, checkVersion [3,0] (any (not . null)
12651265
(concatMap buildInfoField
12661266
[ asmSources
12671267
, cmmSources
@@ -1270,7 +1270,7 @@ checkCabalVersion pkg =
12701270
PackageDistInexcusable $
12711271
"The use of 'asm-sources', 'cmm-sources', 'extra-bundled-libraries' "
12721272
++ " and 'extra-library-flavours' requires the package "
1273-
++ " to specify at least 'cabal-version: >= 2.1'."
1273+
++ " to specify at least 'cabal-version: 3.0'."
12741274

12751275
, checkVersion [2,1] (any (not . null)
12761276
(buildInfoField virtualModules)) $

0 commit comments

Comments
 (0)