swarm-game / swarm

Resource gathering + programming game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`unix` required on Windows

noahyor opened this issue · comments

Does not compile on Windows, claims to depend on unix.

Should compile just fine now on windows because of vty.

I ran these commands:

git clone https://github.com/swarm-game/swarm.git
cd swarm
cabal run

cabal said this:

Resolving dependencies...
Error: cabal-3.10.3.0.exe: Could not resolve dependencies:
[__0] trying: swarm-0.5.0.0 (user goal)
[__1] next goal: unix (dependency of swarm)
[__1] rejecting: unix-2.8.5.1, unix-2.8.5.0, unix-2.8.4.0, unix-2.8.3.0,
unix-2.8.2.1, unix-2.8.2.0, unix-2.8.1.1, unix-2.8.1.0, unix-2.8.0.0,
unix-2.7.3, unix-2.7.2.2, unix-2.7.2.1, unix-2.7.2.0 (library is not buildable
in the current environment, but it is required by swarm)
[__1] trying: unix-2.7.1.0
[__2] next goal: base (dependency of swarm)
[__2] rejecting: base-4.17.2.0/installed-4.17.2.0 (conflict: unix => base>=4.5
&& <4.9)
[__2] skipping: base-4.19.1.0, base-4.19.0.0, base-4.18.2.1, base-4.18.2.0,
base-4.18.1.0, base-4.18.0.0, base-4.17.2.1, base-4.17.2.0, base-4.17.1.0,
base-4.17.0.0, base-4.16.4.0, base-4.16.3.0, base-4.16.2.0, base-4.16.1.0,
base-4.16.0.0, base-4.15.1.0, base-4.15.0.0, base-4.14.3.0, base-4.14.2.0,
base-4.14.1.0, base-4.14.0.0, base-4.13.0.0, base-4.12.0.0, base-4.11.1.0,
base-4.11.0.0, base-4.10.1.0, base-4.10.0.0, base-4.9.1.0, base-4.9.0.0 (has
the same characteristics that caused the previous version to fail: excluded by
constraint '>=4.5 && <4.9' from 'unix')
[__2] rejecting: base-4.8.2.0, base-4.8.1.0, base-4.8.0.0, base-4.7.0.2,
base-4.7.0.1, base-4.7.0.0, base-4.6.0.1, base-4.6.0.0, base-4.5.1.0,
base-4.5.0.0, base-4.4.1.0, base-4.4.0.0, base-4.3.1.0, base-4.3.0.0,
base-4.2.0.2, base-4.2.0.1, base-4.2.0.0, base-4.1.0.0, base-4.0.0.0,
base-3.0.3.2, base-3.0.3.1 (constraint from non-upgradeable package requires
installed instance)
[__2] fail (backjumping, conflict set: base, swarm, unix)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, unix, swarm

I looked into the cabal file and unix only occurs once, in the dependencies for swarm-tournament.

The same thing happens when I run stack run swarm:exe:swarm

What about cabal run swarm:exe:swarm?

Sorry, I put the wrong command up there. See my original comment again.

Still the same thing, though.

stack says this:

PS C:\Users\noah\swarm> stack run swarm:exe:swarm
←[0m
←[33mWarning:←[0m Stack has not been tested with GHC versions above 9.6, and using 9.6.4, this may fail.←[0m
←[0m
←[33mWarning:←[0m Stack has not been tested with Cabal versions above 3.10, but version 3.10.1.0 was found, this may fail.←[0m
←[0m
←[91mError:←[0m [S-4804]
       Stack failed to construct a build plan.

       While constructing the build plan, Stack encountered the following errors:

       In the dependencies for ←[33mswarm-0.5.0.0←[0m:
           ←[91munix←[0m needed, but the Stack configuration has no specified version (latest matching version is ←[92m2.8.5.1←[0m)
       needed since ←[33mswarm←[0m is a build target.←[0m

What version of cabal do you have installed?

cabal-install version 3.10.3.0
compiled using version 3.10.3.0 of the Cabal library