git-annex/doc/bugs/cabal_builds_without_assistant.mdwn
Joey Hess 78440ca37d
move assistant and webapp build-depends into main build-depends
For some reason, cabal 3.4.1.0 builds w/o the assistant and webapp,
even when the flag is explicitly turned on. Moving the build-depends from
inside the if flag section to the main build-depends somehow fixes this.

Since the webapp build deps are thus always available, there is no reason
not to build the webapp when building the assistant. So, got rid of the
webapp build flag. Kept the assistant build flag for now, since building
without it does at least still speed up the build.

Sponsored-by: Brock Spratlen on Patreon
2022-08-29 15:23:49 -04:00

14 lines
663 B
Markdown

With cabal 3.4.1.0, `cabal build` does not build the assistant, even though
all dependencies are there. Even after `cabal configure -fAssistant`, it
silently skips installing the deps for the assistant and does not enable the
CPP for the flag. Same for webapp.
Earlier versions of cabal did not behave this way. Perhaps it is a cabal
bug?
I tried moving the build-depends out of the `if flag(Assistant)` section
to the main build-depends section. It was able to install all the build
depends, so it's not some dependency issue making it decide to turn off
that build flag. --[[Joey]]
> [[fixed|done]] by moving the dependencies into the main block. --[[Joey]]