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
This commit is contained in:
Joey Hess 2022-08-29 15:21:00 -04:00
parent 6a168bb823
commit 78440ca37d
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
7 changed files with 82 additions and 64 deletions

View file

@ -311,3 +311,5 @@ I had tons of luck using git-annex. I am a non-programmer person and I could eas
I can cut and export now from every available computer in my home. I have a central server on my LAN and git-annex also helps me to back up every episode.
My next goal is to use it for my personal documents like scans of invoices, letter and so on. I think an archive repo will help me with this. So I can have all the stuff in one big folder.
Thanks for inventing such a nice tool
> [[fixed|done]] --[[Joey]]

View file

@ -0,0 +1,16 @@
[[!comment format=mdwn
username="joey"
subject="""comment 5"""
date="2022-08-29T19:21:22Z"
content="""
I've committed a workaround to that cabal problem, so assuming that was
the cause of your problem, it will be fixed by the next git-annex release.
If something else caused it, the next git-annex release would
probably fail to build on homebrew. Which the homebrew developers will
follow up on.
So, I don't think this bug needs to be kept open any longer. Although you
will need to wait, or install git-annex by another means than homebrew, in
the meantime..
"""]]

View file

@ -10,3 +10,5 @@ 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]]