-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to find install plan for containers package tests #935
Comments
(Imported comment by @kosmikus on 2012-04-24) Ok, I can confirm the problem by using the Github version of containers on a plain ghc-7.4.1 installation. The problem is actually not a solver problem, as I first thought, but a more fundamental problem in Cabal. It's also independent of using the modular solver. So the problem here is that the testsuite of containers indirectly depends on containers again. The question is whether this should be allowed. Fixing this would indeed mean that we should be able to build containers first, then the dependencies of the test framework, and finally the testsuite. We'd indeed have to introduce a possibility to build flavours or parts of packages in isolation. It'd for example be nice to be able to separately build non-profiling and profiling versions of a lib. However, I'm afraid this change will take some more careful design, so don't expect a quick fix. |
(Imported comment by @tibbe on 2012-04-24) When I think about it I believe I've seen this problem before, with benchmarks. I generally hack on lower-level libraries and my test and benchmark dependencies indirectly depend on the library I'm working on quite often nowadays (e.g. Criterion depends on unordered-containers and I use Criterion to benchmark unordered-containers.) |
(Imported comment by @kosmikus on 2012-04-24) A workaround for the low-level libraries might be to manually split into containers and containers-tests. |
Splitting is kind of a pain, although it does work. |
I'm closing this in favor of #1575, which has more discussion. |
(Imported from Trac #945, reported by @tibbe on 2012-04-24)
The containers package has a test-suite section which seems to create a cycle when building the package. Could it be that Cabal treats the package as one unit instead of treating the library and test-suite sections separately, which should remove the cycle.
The text was updated successfully, but these errors were encountered: