Skip to content

haddock flags are not hashed #8736

@phadej

Description

@phadej

Try (with clean store)

cabal haddock --enable-documentation

build succeeds.

Then

cabal haddock --enable-documentation --haddock-for-hackage

then fails with e.g.

haddock: internal error: /cabal/store/ghc-9.2.5/lattices-2.1-d73b3b45d6e9cfdff466bcdd682b8b68f15a545af43b3b9dea31c352516883bc/share/doc/html/doc-index.json: openBinaryFile: does not exist (No such file or directory)

Apparently also dependencies need to be be built differently when haddock flag changes.


However, if I try

cabal haddock --enable-documentation --haddock-quickjump

Then the dependencies are rebuilt.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions