Closed
Description
I've distilled this example into https://github.com/RyanGlScott/cabal-sdist-bug/tree/910078306b4e127996bd7c9208a7e741b9f74351. This has a .cabal
file with the following extra-source-files
:
extra-source-files: check-hs/*.check.hs
And one can verify that there are indeed several files in that location with a .check.hs
extension. But when one attempts to run cabal sdist
on that project, cabal
becomes confused:
$ cabal sdist
Warning: Cannot run preprocessors. Run 'configure' command first.
Building source dist for cabal-sdist-bug-0.1.0...
cabal: filepath wildcard 'check-hs/*.check.hs' does not match any files.
For some reason, cabal
seems to get confused when the wildcard asterisk is used in conjunction with file extensions with multiple dots like .check.hs
(at least, that's my current theory). In order to work around this bug, I have to manually enumerate every single .check.hs
, like what I currently must do in base-compat
.
$ cabal --version
cabal-install version 2.0.0.1
compiled using version 2.0.1.1 of the Cabal library