-
Notifications
You must be signed in to change notification settings - Fork 725
Open
Labels
Description
Describe the bug
While writing the patch #11567 I ran across an assertion:
cabal/cabal-install/src/Distribution/Client/ProjectPlanning.hs
Lines 268 to 272 in d67898a
| -- the stanzas explicitly disabled should not be available | |
| . assert | |
| ( optStanzaSetNull $ | |
| optStanzaKeysFilteredByValue (maybe False not) elabStanzasRequested `optStanzaSetIntersection` elabStanzasAvailable | |
| ) |
This gets triggered regardless of the patch with a package that has an executable and a test suite and the following cabal.project file:
packages: ./cabal-assert-repro.cabal
package *
Tests: FalseResults in:
$ /home/hasufell/git/cabal/dist-newstyle/build/x86_64-linux/ghc-9.8.4/cabal-install-3.17.0.0/x/cabal/build/cabal/cabal build
Warning: this is a debug build of cabal-install with assertions enabled.
Resolving dependencies...
Build profile: -w ghc-9.8.4 -O1
In order, the following will be built (use -v for more details):
Assertion failed
CallStack (from HasCallStack):
assert, called at src/Distribution/Client/ProjectPlanning.hs:269:9 in cabal-install-3.17.0.0-inplace:Distribution.Client.ProjectPlanning
To Reproduce
Steps to reproduce the behavior:
- build cabal from master with assertions enabled (normal
cabal builddoes, the shipped binaries don't have it) - clone https://github.com/hasufell/cabal-assert-repro
- run
cabal build
Reactions are currently unavailable