-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cabal sdist
does not pick up files with multiple dots
#5057
Comments
I don't know whether this was a deliberate design choice (maybe to discourage overzealous use of globbing? =) ) , but I remember Cabal behaving this way ever since it gained support for globbing... :-) |
...OK? If this is intended behavior, how am I supposed to glob for these sorts of files? |
Here's the issue:
So we're looking for
Oops, we are looking for files with the |
Here ya go #5061 |
Ok, I've investigated a bit, and the current behaviour was in fact a deliberate design choice (which I happen to sympathize with): quoting 31f2678:
...and in fact, the same wording can be found in the user's guide at http://cabal.readthedocs.io/en/latest/developing-packages.html#pkg-field-data-files That being said, I realise that allowing |
Related bug: #784. |
This has the effect of allowing a glob `*.html` to match the file `foo.en.html`. For compatibility, this is only allowed with `cabal-version: 3.0` or later; for earlier spec versions, a warning will be generated by `cabal check` if there are files affected by this change in behaviour. Fixes haskell#5057. Fixes haskell#784. Closes haskell#5061.
This has the effect of allowing a glob `*.html` to match the file `foo.en.html`. For compatibility, this is only allowed with `cabal-version: 3.0` or later; for earlier spec versions, a warning will be generated by `cabal check` if there are files affected by this change in behaviour. Fixes haskell#5057. Fixes haskell#784. Closes haskell#5061.
This has the effect of allowing a glob `*.html` to match the file `foo.en.html`. For compatibility, this is only allowed with `cabal-version: 3.0` or later; for earlier spec versions, a warning will be generated by `cabal check` if there are files affected by this change in behaviour. Fixes haskell#5057. Fixes haskell#784. Closes haskell#5061.
I've distilled this example into https://github.com/RyanGlScott/cabal-sdist-bug/tree/910078306b4e127996bd7c9208a7e741b9f74351. This has a
.cabal
file with the followingextra-source-files
:And one can verify that there are indeed several files in that location with a
.check.hs
extension. But when one attempts to runcabal sdist
on that project,cabal
becomes confused: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 inbase-compat
.The text was updated successfully, but these errors were encountered: