You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have a Haddock built outside of the GHC tree at /my/haddock and a Haddock resource directory at /my/haddock/resources. In a cabal project with a dependency, running
Causes building documentation to fail with Haddock's resource directory does not exist! in the build logs for the dependency.
I think --haddock-lib=/my/haddock/resources should cause a --lib=/my/haddock/resources argument to be provided to all invocations of Haddock, including those for dependencies.
Describe the bug
I have a Haddock built outside of the GHC tree at
/my/haddock
and a Haddock resource directory at/my/haddock/resources
. In a cabal project with a dependency, runningCauses building documentation to fail with
Haddock's resource directory does not exist!
in the build logs for the dependency.I think
--haddock-lib=/my/haddock/resources
should cause a--lib=/my/haddock/resources
argument to be provided to all invocations of Haddock, including those for dependencies.To Reproduce
lib.cabal
contents:In same directory as
lib.cabal
, run (substituting paths appropriately):It will fail to build documentation for the acme-missiles dependency.
cat
the resulting build log and see output ending with something like:Expected behavior
Building documentation with a
haddock
built outside the GHC tree and a specific--haddock-lib
should succeed.System information
cabal
,ghc
versions: cabal version 3.11.0.0 (commit e1a10bd), haddock version 2.28.0 (commit 710e1ea119a566a8f704b07bfa4375ab50a94dec on the ghc mirror, ghc version 9.8.20230619.I suspect this occurs with any version of Haddock built outside of the GHC tree with any version of GHC, but I have not verified that.
The text was updated successfully, but these errors were encountered: