Skip to content
Snippets Groups Projects
Unverified Commit 74b1f215 authored by f-a's avatar f-a Committed by GitHub
Browse files

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: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 22698356
No related branches found
No related tags found
No related merge requests found
Pipeline #91368 passed
Showing
with 216 additions and 12 deletions
Loading
  • f-a @trac-f-a

    mentioned in commit 698339c0

    ·

    mentioned in commit 698339c0

    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment