Open
Description
See #5304 (comment) and #3978 (comment) for an example involving http-client-0.5.12.1
. The library stanza contains
-- See build failure at https://travis-ci.org/snoyberg/http-client/jobs/359573631
if impl(ghc < 7.10)
buildable: False
The solver doesn't backtrack to find an older version with a buildable library, and cabal fails with (from #5304 (comment)):
$ cabal new-build -w ghc-7.8.4 --index-state='2018-05-09T06:20:23Z'
Error:
Dependency on unbuildable library from http-client
In the stanza 'library'
In the inplace package 'zzz-0'
This issue is a continuation of #3978, which described a bad error message for an unbuildable component. Its regression test tests the current error message:
cabal/cabal-testsuite/PackageTests/NewBuild/T3978/cabal.out
Lines 1 to 6 in 898fcc2
This issue should probably be fixed as part of #4087.