HuwCampbell/grenade

mafia build failure

dansuh17 opened this issue · 4 comments

There's a conflict with base==4.10.0.0 which is rejected because of the constraint that memory-0.12 is giving: base >= 4 && < 4.10.

How can I fix this?

I have tested this with ghc-8.2.1

full error message:

Cloning into 'mafia'...
remote: Counting objects: 2063, done.
remote: Total 2063 (delta 0), reused 0 (delta 0), pack-reused 2062
Receiving objects: 100% (2063/2063), 623.94 KiB | 391.00 KiB/s, done.
Resolving deltas: 100% (1117/1117), done.
HEAD is now at 3607163 Merge pull request #153 from ambiata/topic/project-terminology
Downloading the latest package list from hackage.haskell.org
Submodule 'lib/disorder' (https://github.com/ambiata/disorder.hs) registered for path 'lib/disorder'
Submodule 'lib/p' (https://github.com/ambiata/p) registered for path 'lib/p'
Submodule 'lib/twine' (https://github.com/ambiata/twine) registered for path 'lib/twine'
Submodule 'lib/x' (https://github.com/ambiata/x) registered for path 'lib/x'
Cloning into '/private/var/folders/vt/_b_21qtd12v2bl7qtl031zw00000gn/T/tmp.ekImw9m4/mafia/lib/disorder'...
Cloning into '/private/var/folders/vt/_b_21qtd12v2bl7qtl031zw00000gn/T/tmp.ekImw9m4/mafia/lib/p'...
Cloning into '/private/var/folders/vt/_b_21qtd12v2bl7qtl031zw00000gn/T/tmp.ekImw9m4/mafia/lib/twine'...
Cloning into '/private/var/folders/vt/_b_21qtd12v2bl7qtl031zw00000gn/T/tmp.ekImw9m4/mafia/lib/x'...
Submodule path 'lib/disorder': checked out 'c8625df58098d78cfa71cfb578bf72ccc2836706'
Submodule path 'lib/p': checked out 'fd88f397585914b1d897a5ec5dc5862a4fea9833'
Submodule path 'lib/twine': checked out '23d611a131785da696760000f148e7f14f26e277'
Submodule path 'lib/x': checked out '29d9c8c188f6f02a59228bd7649f13abceb1311a'
Writing a default package environment file to
/private/var/folders/vt/_b_21qtd12v2bl7qtl031zw00000gn/T/tmp.ekImw9m4/mafia/cabal.sandbox.config
Creating a new sandbox at
/private/var/folders/vt/_b_21qtd12v2bl7qtl031zw00000gn/T/tmp.ekImw9m4/mafia/.cabal-sandbox
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: ambiata-mafia-0.0.1 (user goal)
trying: base-4.10.0.0/installed-4.1... (dependency of ambiata-mafia-0.0.1)
next goal: memory (dependency of ambiata-mafia-0.0.1)
rejecting: memory-0.14.16, memory-0.14.15, memory-0.14.14, memory-0.14.13,
memory-0.14.12, memory-0.14.11, memory-0.14.10, memory-0.14.9, memory-0.14.8,
memory-0.14.7, memory-0.14.6, memory-0.14.5, memory-0.14.4, memory-0.14.3,
memory-0.14.2, memory-0.14.1, memory-0.14, memory-0.13 (conflict:
ambiata-mafia => memory==0.12.*)
rejecting: memory-0.12 (conflict: base==4.10.0.0/installed-4.1..., memory =>
base>=4 && <4.10)
rejecting: memory-0.11, memory-0.10, memory-0.9, memory-0.8, memory-0.7,
memory-0.6, memory-0.5, memory-0.4, memory-0.3, memory-0.2, memory-0.1
(conflict: ambiata-mafia => memory==0.12.*)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: ambiata-mafia, base, memory
Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.

How frustrating. That version of mafia is a bit old now, and the organisation haskell-mafia has sprung up to maintain it.

The script should be replaced with this one
https://github.com/haskell-mafia/mafia/blob/master/script/mafia

Been trying to work with mafia (with much anguish), and found a clean alternative : stack.
Simple stack build command from root directory built the project with no trouble, and all examples were good to go :)

That will also work. Cabal is fine too.

I've pushed a new version of the mafia script in. Should work now as well.