Repository navigation
Conversation
The path is hard coded to ./dist/build/cabal/cabal.
There was a problem hiding this comment.
I didn't use the path in paths because it contains backslashes on Windows.
|
The pile of ../../.. surely cannot be right. Maybe #2797 will obsolete this? |
|
Well, I can at least confirm that #2797 will fix this problem automatically :). It probably doesn't make sense to spend any time on this particular issue until that's done... which will hopefully be some time in the next few days. |
|
I tried out the branch for #2797 on Windows. I had to change the path to |
|
(I don't have any way of testing on Windows myself. so this is invaluable feedback, thank you!) The "bash" vs. "sh" is a simple oversight -- I just copy/pasted the test and adapted it... but forgot to change "bash" to "sh". (I think I'm going to go with just "sh" for all the test scripts, seems like the safest bet that "sh" is basically always going to be installed.) Re: backslashes: They probably come from the |
|
OK, thanks for the follow-up. I'll see what I can do to address all of these issues in #2797. I'm not sure what we can do about /bin/sh, but it might be feasible to just do a $PATH search first. (Or, absolute worst case, allow the shell to be specified via an env variable?) |
|
@BardurArantsson No problem. Searching PATH worked for me when I called |
|
@GrayJay : Can you please check if everything runs OK for you in current master? If so, please just close this. |
|
It works. Thanks! |
The test "configures cabal to use the sandbox" runs the command
cabal sandbox hc-pkg list. That cabal may not be the development version.When I looked into fixing the test, I noticed an inconsistency in the rest of the test suite. The package tests locate cabal by searching both dist/build/cabal and the default program search path. However, main also calls
canonicalizePath "dist/build/cabal", which throws an exception when the path doesn't exist.Which solution is preferable?
This pull request implements the first option, but I'd be happy to change it.