cabal-dev install fails to resolve dependencies for new yesod project #59

Open
HairyDude opened this Issue Jun 14, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@HairyDude

I am running Windows XP SP3 with Haskell Platform 2012, in a mingw shell. Here are the original repro steps:

  1. cabal install yesod-platform
  2. Make sure yesod is in your path
  3. yesod init -- call the project "cabaldev-bugtest"
  4. cd cabaldev-bugtest
  5. cabal --dry-run install
  6. cabal-dev --dry-run install

cabal successfully resolves the project's dependencies (right now on my system all it wants to install is persistent-sqlite). cabal-dev does not:

[Peter Berry@rhuidean cabaldev-bugtest]$ cabal-dev --dry-run install
Resolving dependencies...
cabal.exe: Could not resolve dependencies:
trying: cabaldev-bugtest-0.0.0 (user goal)
trying: http-conduit-1.4.1.8 (dependency of cabaldev-bugtest-0.0.0)
trying: socks-0.4.1 (dependency of http-conduit-1.4.1.8)
trying: cereal-0.3.5.2 (dependency of socks-0.4.1)
trying: attoparsec-0.10.2.0 (dependency of http-conduit-1.4.1.8)
next goal: yesod-platform (dependency of cabaldev-bugtest-0.0.0)
rejecting: yesod-platform-1.0.4.2 (conflict: cereal==0.3.5.2, yesod-platform => cereal==0.3.5.1)
rejecting: yesod-platform-1.0.4.1, 1.0.4, 1.0.3.4, 1.0.3.3, 1.0.3.2, 1.0.2,
1.0.1, 1.0.0 (conflict: attoparsec==0.10.2.0, yesod-platform => attoparsec==0.10.1.1)
rejecting: yesod-platform-0.10.3, 0.10.2 (conflict: cabaldev-bugtest => yesod-platform>=1.0 && <1.1)

You can still repro if you delete everything in the cabaldev-bugtest directory except the .cabal file and cabal-dev directory, and use cabal --config-file=cabal-dev/cabal.config. The .cabal file itself can also be simplified a bit. See https://github.com/HairyDude/cabaldev-bugtest for a test case.

-v3 logs are here: https://gist.github.com/2933107

@bitemyapp

This comment has been minimized.

Show comment Hide comment
@bitemyapp

bitemyapp Jul 31, 2012

+1 I have the same problem on OS X.

+1 I have the same problem on OS X.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment