Closed DanBurton closed 7 years ago
Working on it.
Fixed in 0.0.6. Thanks for the report.
I still get the same error when I follow the repro steps with 0.0.6
$ stack unpack data-msgpack-0.0.6
$ cd data-msgpack
$ stack init --resolver nightly-2016-10-24
$ stack build --bench
@DanBurton I tried again.. cabal sdist
fails to add the benchmark modules. I hackishly created my own tarball and uploaded it.
Note that the tarball is actually missing the test suite module files
├── test
│ └── testsuite.hs
That's all there is in the test folder of the tarball. So the test suite might still pass, but only trivially so. I believe the solution is to specify other-modules
listing the modules used by each build target, or other-source-files
at the top level of the cabal file, which allows for some globbing expressions.
I see. Thanks for noting that. I've fixed that in #26 now, using other-source-files
.
As seen on the stackage build server:
How I reproduced this locally: