-
Notifications
You must be signed in to change notification settings - Fork 688
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
Failures in Haddock crash dependency installation #7372
Comments
Hi! Thank you for the report. I'm confused, you say |
I'm not familiar with the internals, but was imagining |
I also am a bit confused: the issue you linked is the opposite to this: haddock failures did not propagate to the whole command. The linked pull request made the command fail on haddock failure. I'd also say it's more correct to fail early when an intermediate build step failed, rather than carry on and result in a possibly unexpected state. |
You're right, I meant to link #5232 but copied the number from the wrong tab (see: tiredness). In #5232, the consensus was that
Ah, for some reason I was thinking that the Haddock wouldn't be figured into the package ID. With that being the case, I do agree that the dependency resolution should fail. Thanks for your time! |
Describe the bug
When incidentally generating Haddock (i.e. with
documentation: True
forcabal build
, not withcabal haddock
), the documentation failing shouldn't have any effect if the rest of the build was successful. This seems to have been fixed for the local package as per #5977, but is still an issue during dependency resolution.To Reproduce
There are likely quite a few ways to hit this bug; two I have come across are below.
haskell/vector#383 -- since-fixed Haddock bugs still being present when using older compilers:
Functions named using Unicode characters on a TTY with fonts limited to (I think) 256 glyphs:
Expected behavior
The warning to be displayed and the Haddock to not be installed, but for the rest of package installation to continue despite that and for the build to progress to the local test package.
System information
Additional context
My guess is that the fixes in #6137 for
cabal build
were not carried over tocabal install
. There might be other commands which likewise cause the generation of Haddock and fail, but I don't immediately know what those may be just reading down the list.The text was updated successfully, but these errors were encountered: