google / codeworld

Educational computer programming environment using Haskell
http://code.world
Apache License 2.0
1.24k stars 196 forks source link

Install script failing, update cabal index-state #1301

Closed devanshbatra04 closed 4 years ago

devanshbatra04 commented 4 years ago

Description The install.sh script is failing. I have tried it on multiple systems (clean ubuntu 18 and debian - both with and without prior Haskell and cabal environments).

This is what the output looks like.

===== RUNNING: cabal v2-install happy-1.19.9 alex --symlink-bindir=/home/jupyter/codeworld/build/bin
cabal: Could not resolve dependencies:
[__0] trying: codeworld-server-0.1 (user goal)
[__1] next goal: ormolu (dependency of codeworld-server)
[__1] rejecting: ormolu-0.0.1.0 (conflict: codeworld-server => ormolu>=0.0.2)
[__1] fail (backjumping, conflict set: codeworld-server, ormolu)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: codeworld-server, ormolu

Interestingly, this can be resolved by removing the index-state parameter at in install.sh (or replacing the value with the current timestamp).

My thoughts are that hackage didn't have the required version of ormolu at the timestamp mentioned in install.sh and it wasn't spotted because Travis builds have been failing (never reaching the build phase). I haven't sent a PR because I am not entirely sure of the matter.

cdsmith commented 4 years ago

It sounds like updating the timestamp is the correct solution. I probably updated the ormolu version and forgot to update the install script. If you a timestamp that definitely works, please send a pull request or let me know what it is. Otherwise, I'll test one tonight.

devanshbatra04 commented 4 years ago

Okay, sure. I will send a PR today. Sorry for delay, had a busy week.

cdsmith commented 4 years ago

Looks like Greg's PR fixed this.