Rebase of #5370 (fix for #4683) (#7409)
* Introduce checks for upper dependencies in setup. setup depends are now checked for having upper dependencies. Upper bounds are mandatory for base and Cabal libraries, and are optional (but emit warning) for other libraries. Implicit dependencies are not being checked. * Add tests. * Fix tests. * add changelog * fix test for the newer cabal_raw' * scale down alerts: no warnings on any package, only errors on base+Cabal * address review comments * typo * improve changelog (add Cabal) * remove boundedAbove and use Distribution.Version.hasUpperBound instead Co-authored-by:Alexander Vershilov <alexander.vershilov@gmail.com> Co-authored-by:
Emily Pillmore <emilypi@cohomolo.gy> Co-authored-by:
Mikolaj Konarski <mikolaj@well-typed.com>
Showing
- Cabal/src/Distribution/PackageDescription/Check.hs 51 additions, 26 deletionsCabal/src/Distribution/PackageDescription/Check.hs
- cabal-testsuite/PackageTests/CheckSetup/LICENSE 1 addition, 0 deletionscabal-testsuite/PackageTests/CheckSetup/LICENSE
- cabal-testsuite/PackageTests/CheckSetup/MyLibrary.hs 1 addition, 0 deletionscabal-testsuite/PackageTests/CheckSetup/MyLibrary.hs
- cabal-testsuite/PackageTests/CheckSetup/Setup.hs 2 additions, 0 deletionscabal-testsuite/PackageTests/CheckSetup/Setup.hs
- cabal-testsuite/PackageTests/CheckSetup/my.cabal 25 additions, 0 deletionscabal-testsuite/PackageTests/CheckSetup/my.cabal
- cabal-testsuite/PackageTests/CheckSetup/setup.test.hs 20 additions, 0 deletionscabal-testsuite/PackageTests/CheckSetup/setup.test.hs
- changelog.d/issue-4683 4 additions, 0 deletionschangelog.d/issue-4683
changelog.d/issue-4683
0 → 100644
Please register or sign in to comment