Describe the bug
While writing the patch #11567 I ran across an assertion:
|
-- 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: False
Results 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 build does, the shipped binaries don't have it)
- clone https://github.com/hasufell/cabal-assert-repro
- run
cabal build
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
This gets triggered regardless of the patch with a package that has an executable and a test suite and the following
cabal.projectfile:Results in:
To Reproduce
Steps to reproduce the behavior:
cabal builddoes, the shipped binaries don't have it)cabal build