-
Notifications
You must be signed in to change notification settings - Fork 697
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 for crypto-api-0.13.3 fails to build with Cabal 3.10.1.0 #9060
Comments
See #8326. |
From Haddock #1488, |
Is there a workaround? |
@mrkkrp there's a delicate relationship between versions inside the ghc-cabal-haddock triad. It appears that the bug disappears on GHC 9.2 + Cabal 3.8 (but you already knew it) and on GHC 9.4+ (including 9.6) + Cabal 3.10. |
@coot you contributed the original fix for this issue I believe. Do you understand why GHC 9.2 with latest patches (e.g. 9.2.8) still suffers from it but only with Cabal 3.10? And more importantly, is there anything we could do (especially on the Cabal end) to make Cabal 3.10.x work with GHC 9.2? As it stands, this issue blocks the |
I just checked the haddock branches and the ghc-9.2 branch doesn't have the fix from haskell/haddock#1488 ghc-9.4 (and on, i assume) does have it. @ffaf1 where did you get the info about it being
? (Btw, thanks a lot for looking up haskell/haddock#1488!) The only mystery remaining is why Cabal <3.10 works... |
I don’t know what I was reading, sorry for spreading misinfo. Depending on GHCup choices, this might be something quite important. |
In particular, this change:
|
In particular, it looks like that if we change
just like you did in the |
@mrkkrp do you want to check yourself that the bug is fixed on
(replace Linux with macOS or Windows as appropriate). |
Yes it makes sense. |
Cabal 3.10.2.0 exposes a bug in Haddock shipped with GHC 9.0 and 9.2, so we need to work around it by bumping the version of GHC/Haddock we use for building/uploading docs to Hackage, and to prevent build failures we don't ever try to build haddocks for Hackage with older versions of GHC/Haddock. Related: haskell/haddock#1582 (comment) Related: haskell/cabal#8326 Related: haskell/cabal#9060 Related: haskell/cabal#9073 Related: haskell/cabal#9049
Cabal 3.10.2.0 exposes a bug in Haddock shipped with GHC 9.0 and 9.2, so we need to work around it by bumping the version of GHC/Haddock we use for building/uploading docs to Hackage, and to prevent build failures we don't ever try to build haddocks for Hackage with older versions of GHC/Haddock. Related: haskell/haddock#1582 (comment) Related: haskell/cabal#8326 Related: haskell/cabal#9060 Related: haskell/cabal#9073 Related: haskell/cabal#9049
Cabal 3.10.2.0 exposes a bug in Haddock shipped with GHC 9.0 and 9.2, so we need to work around it by bumping the version of GHC/Haddock we use for building/uploading docs to Hackage, and to prevent build failures we don't ever try to build haddocks for Hackage with older versions of GHC/Haddock. Related: haskell/haddock#1582 (comment) Related: haskell/cabal#8326 Related: haskell/cabal#9060 Related: haskell/cabal#9073 Related: haskell/cabal#9049
Cabal 3.10.2.0 exposes a bug in Haddock shipped with GHC 9.0 and 9.2, so we need to work around it by bumping the version of GHC/Haddock we use for building/uploading docs to Hackage, and to prevent build failures we don't ever try to build haddocks for Hackage with older versions of GHC/Haddock. Related: haskell/haddock#1582 (comment) Related: haskell/cabal#8326 Related: haskell/cabal#9060 Related: haskell/cabal#9073 Related: haskell/cabal#9049
Describe the bug
Haddock for crypto-api-0.13.3 fails to build with Cabal 3.10.1.0. It appears to work with older versions of Cabal, namely with 3.8.1.0.
First observed here:
https://github.com/mrkkrp/req/actions/runs/5349288540/jobs/9700788692?pr=150#step:10:356
To Reproduce
I was able to reproduce by clonning
crypto-api
and runningcabal haddock
from the root of the repo (not entirely sure that it is the same failure as on CI (see link above) but it fails as well).Expected behavior
cabal haddock
should succeed and generate Haddocks.System information
cabal
,ghc
versions:The text was updated successfully, but these errors were encountered: