Skip to content
This repository

cabal init reverse path order in some cases #1160

Closed
dagit opened this Issue December 28, 2012 · 0 comments

2 participants

Jason Dagit Brent Yorgey
Jason Dagit

Rileld in #haskell discovered this. He had a path like this:

$HOME/rpmbuild/RPMS/noarch

And cabal init was saying:

cabal: /home/Rileld/rpmbuild/noarch/RPMS: does not exist

You can see his log here: http://hpaste.org/79924

A simpler test case is this:

mkdir cabal-init-test && cd cabal-init-test && mkdir -p FOO/bar && cabal init # now provide default answers

You will see that cabal init reverses the directories in the path so that it cannot find bar/FOO.

I believe the bug lives in the Heuristics module for init, perhaps in this function: https://github.com/haskell/cabal/blob/master/cabal-install/Distribution/Client/Init/Heuristics.hs#L72

Brent Yorgey byorgey closed this in c833d64 December 28, 2012
Jason Dagit dagit referenced this issue in creswick/cabal-dev March 05, 2013
Open

cabal-dev complaining about missing directory #98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.