You can clone with
No one assigned
This is related to a few other issues in other projects: fpco/stackage#3 sol/doctest-haskell#39 faylang/fay#174
There are some packages which make use of the package database themselves. Fay calls GHC for type checking, doctest calls it to test code snippets, and there are likely others. This works fine when using the standard user package database, but when using a sandbox such as created by cabal-dev, this no longer works.
The solution we came up with for Stackage was to set a HASKELL_PACKAGE_SANDBOX environment variable. doctest now recognizes it, and in theory Fay can do so as well. I think it would make sense for cabal-dev to set this variable as well.
Note that this is similar to GHC_PACKAGE_PATH, but works around the fact that cabal-install will not allow that variable to be set.
Pinging @sol @chrisdone and @jwiegley who have each been affected by this somehow.
It's because the new doctest isn't on Hackage.
There are some issues that I have to resolve. I'm working on it, sorry for the delay.
doctest-0.9.4 has support for HASKELL_PACKAGE_SANDBOX.
Would it make sense to set GHC_PACKAGE_PATH before running the tests, instead?
Similar to fpco/stackage@2534579.
That change would probably have to take place in cabal-install instead, as I think it calls all of the tests itself.
@snoyberg Ah ok, I see what you mean. cabal-dev does not wrap the commands individually, so there is currently no easy way to tell whether it's cabal-dev test.