-
- Downloads
Make `check` recognise `main-is` in conditional branches (#9768)
* Add tests for #9742
`main-is` not picked up when inside a multibranch CondNode.
* Fix comments
* Add simplifyBranch to Distribution.Types.CondTree
Goes hand in hand with with simplifyCondTree.
* Make `check` deal correctly with multiple branches
`cabal check` had a problem recognising fields in presence of
multiple branches. This patch fixes the problem and does not
meaningfully increases CI time of particularly taxing tests
(like “duplicate flagged dependencies” from MemoryUsage).
---------
Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Showing
- Cabal-syntax/src/Distribution/Types/CondTree.hs 16 additions, 8 deletionsCabal-syntax/src/Distribution/Types/CondTree.hs
- Cabal/src/Distribution/PackageDescription/Check/Conditional.hs 48 additions, 4 deletions.../src/Distribution/PackageDescription/Check/Conditional.hs
- cabal-testsuite/PackageTests/Check/Cond/After/cabal.out 2 additions, 0 deletionscabal-testsuite/PackageTests/Check/Cond/After/cabal.out
- cabal-testsuite/PackageTests/Check/Cond/After/cabal.test.hs 5 additions, 0 deletionscabal-testsuite/PackageTests/Check/Cond/After/cabal.test.hs
- cabal-testsuite/PackageTests/Check/Cond/After/pkg.cabal 26 additions, 0 deletionscabal-testsuite/PackageTests/Check/Cond/After/pkg.cabal
- cabal-testsuite/PackageTests/Check/Cond/Before/cabal.out 2 additions, 0 deletionscabal-testsuite/PackageTests/Check/Cond/Before/cabal.out
- cabal-testsuite/PackageTests/Check/Cond/Before/cabal.test.hs 5 additions, 0 deletionscabal-testsuite/PackageTests/Check/Cond/Before/cabal.test.hs
- cabal-testsuite/PackageTests/Check/Cond/Before/pkg.cabal 26 additions, 0 deletionscabal-testsuite/PackageTests/Check/Cond/Before/pkg.cabal
- cabal-testsuite/PackageTests/Check/Cond/Deep/cabal.out 2 additions, 0 deletionscabal-testsuite/PackageTests/Check/Cond/Deep/cabal.out
- cabal-testsuite/PackageTests/Check/Cond/Deep/cabal.test.hs 5 additions, 0 deletionscabal-testsuite/PackageTests/Check/Cond/Deep/cabal.test.hs
- cabal-testsuite/PackageTests/Check/Cond/Deep/pkg.cabal 34 additions, 0 deletionscabal-testsuite/PackageTests/Check/Cond/Deep/pkg.cabal
- cabal-testsuite/PackageTests/Check/Cond/DeepMissing/cabal.out 5 additions, 0 deletions...l-testsuite/PackageTests/Check/Cond/DeepMissing/cabal.out
- cabal-testsuite/PackageTests/Check/Cond/DeepMissing/cabal.test.hs 5 additions, 0 deletions...stsuite/PackageTests/Check/Cond/DeepMissing/cabal.test.hs
- cabal-testsuite/PackageTests/Check/Cond/DeepMissing/pkg.cabal 35 additions, 0 deletions...l-testsuite/PackageTests/Check/Cond/DeepMissing/pkg.cabal
Loading