Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

haddock flags are not hashed #8736

Open
phadej opened this issue Feb 4, 2023 · 3 comments
Open

haddock flags are not hashed #8736

phadej opened this issue Feb 4, 2023 · 3 comments

Comments

@phadej
Copy link
Collaborator

phadej commented Feb 4, 2023

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.

@ulysses4ever
Copy link
Collaborator

#8553 #8326 perhaps related?

@ulysses4ever ulysses4ever changed the title haddock flags are not hashed. haddock flags are not hashed Feb 5, 2023
@gbaz gbaz added this to the Considered for 3.12 milestone Jul 4, 2023
@alt-romes
Copy link
Collaborator

FWIW I wasn't able to reproduce with Cabal 3.11

@Mikolaj
Copy link
Member

Mikolaj commented Nov 3, 2023

Great news. It would be best to track down the PR that fixes this, though, before closing. But if nobody does, I guess we can close once 3.12 is out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants