File tree 1 file changed +17
-0
lines changed
Cabal/Distribution/PackageDescription 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1186,6 +1186,23 @@ checkCabalVersion pkg =
1186
1186
[ display (Dependency name (eliminateMajorBoundSyntax versionRange))
1187
1187
| Dependency name versionRange <- depsUsingMajorBoundSyntax ]
1188
1188
1189
+ , checkVersion [2 ,1 ] (any (not . null )
1190
+ (concatMap buildInfoField
1191
+ [ asmSources
1192
+ , cmmSources
1193
+ , extraBundledLibs
1194
+ , extraLibFlavours ])) $
1195
+ PackageDistInexcusable $
1196
+ " The use of 'asm-sources', 'cmm-sources', 'extra-bundled-libraries' "
1197
+ ++ " and 'virtual-modules' requires the package "
1198
+ ++ " to specify at least 'cabal-version: >= 2.1'."
1199
+
1200
+ , checkVersion [2 ,1 ] (any (not . null )
1201
+ (buildInfoField virtualModules)) $
1202
+ PackageDistInexcusable $
1203
+ " The use of 'virtual-modules' requires the package "
1204
+ ++ " to specify at least 'cabal-version: >= 2.1'."
1205
+
1189
1206
-- check use of "tested-with: GHC (>= 1.0 && < 1.4) || >=1.8 " syntax
1190
1207
, checkVersion [1 ,8 ] (not (null testedWithVersionRangeExpressions)) $
1191
1208
PackageDistInexcusable $
You can’t perform that action at this time.
0 commit comments