packunused icon indicating copy to clipboard operation
packunused copied to clipboard

packunused doesn't find -tmp dir for detailed-0.9 test suites

Open timbodeit opened this issue 10 years ago • 0 comments

Inside my .cabal file I have defined a test-suite with type: detailed-0.9.

Cabals standart behavior when building this test suite seems to be that it appends the word Stub to the name of the test suite.
For my test-suite named tests, the .imports file is at dist/build/testsStub/testsStub-tmp/Main.imports instead of dist/build/tests/tests-tmp/Main.imports, where packunused is looking for it.

packunused throws the following error:

packunused: user error (output-dir "dist/build/tests/tests-tmp" does not exist; -- has 'cabal build' been performed yet? (see also 'packunused --help'))

timbodeit avatar Oct 22 '15 12:10 timbodeit