-
Notifications
You must be signed in to change notification settings - Fork 724
Closed
Labels
re: enable-documentationConcerning option/field {en,dis}able-documentationConcerning option/field {en,dis}able-documentationtype: assertion-failNB: assertions are only enabled in devel-buildsNB: assertions are only enabled in devel-builds
Description
Using GHC 9.2.3 and cabal master:
$ cabal haddock --haddock-for-hackage --enable-doc
Warning: this is a debug build of cabal-install with assertions enabled.
Resolving dependencies...
Build profile: -w ghc-9.2.3 -O0
In order, the following will be built (use -v for more details):
- OneTuple-0.3.1 (lib) (requires build)
...
- generically-0.1 (lib) (requires build)
Assertion failed
CallStack (from HasCallStack):
assert, called at src/Distribution/Client/ProjectPlanning.hs:246:5 in cabal-install-3.9.0.0-inplace:Distribution.Client.ProjectPlanning
Also triggered by cabal build --enable-doc.
It is this assertion
cabal/cabal-install/src/Distribution/Client/ProjectPlanning.hs
Lines 242 to 248 in 2353627
| -- either a package is being built inplace, or the | |
| -- 'installedPackageId' we assigned is consistent with | |
| -- the 'hashedInstalledPackageId' we would compute from | |
| -- the elaborated configured package | |
| . assert (elabBuildStyle == BuildInplaceOnly || | |
| elabComponentId == hashedInstalledPackageId | |
| (packageHashInputs sharedConfig elab)) |
Here is the packed up directory in which I can reproduce the bug:
cabal-assertion-failed.zip
(I hope it can be reproduced even without my .cabal directory...)
Metadata
Metadata
Assignees
Labels
re: enable-documentationConcerning option/field {en,dis}able-documentationConcerning option/field {en,dis}able-documentationtype: assertion-failNB: assertions are only enabled in devel-buildsNB: assertions are only enabled in devel-builds