zlib 0.6.1.1 test suite fails to build
Closed this issue · 3 comments
DanBurton commented
A quick scan of the error messages shows that all of the build failures are "ambiguous occurrence" failures similar to this one:
test/Test.hs:339:50:
Ambiguous occurrence ‘assertFailure’
It could refer to either ‘Test.HUnit.assertFailure’,
imported from ‘Test.HUnit’ at test/Test.hs:14:1-17
(and originally defined in ‘Test.HUnit.Lang’)
or ‘Test.Tasty.HUnit.assertFailure’,
imported from ‘Test.Tasty.HUnit’ at test/Test.hs:17:1-23
(and originally defined in ‘tasty-hunit-0.9.2:Test.Tasty.HUnit.Orig’)
DanBurton commented
Under normal circumstances, we'd restrict zlib to a previous version. In this case I'm opting to disable the test suite instead.
phadej commented
@DanBurton please disable test-suite, I'll try to fix test-suite; but I won't hold breath on it.
DanBurton commented
@phadej It looks like this was already fixed in haskell/zlib@b53e777. This bit just hasn't been released to hackage yet.
I have verified that the test suite builds and passes on my local machine like so:
git clone <<zlib repo>> && cd zlib
stack init --resolver nightly-2015-12-30
stack test
And I've verified the "ambiguous occurrence" error with the latest on hackage like so:
stack unpack zlib-0.6.1.1 && cd zlib-0.6.1.1/
- (edit cabal file, loosen constraint on tasty-hunit to
< 0.10
) stack init --resolver nightly-2015-12-30
stack test