-
Notifications
You must be signed in to change notification settings - Fork 697
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
Improve file globbing logic (fixes #5057) #5061
Conversation
This likely also needs a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- needs tests (& make sure that the documented limitations for
*
in filenames remain in place). - possibly a
cabal check
compat-warning - changelog
- possibly user guide update (to document that starting with version x.y, fileglobbing supports multi-part extensions)
see also #5057 (comment)
Sorry, I'm unclear on which came first, these TODOs or your comment about how the current behavior was actually intended. Should I close this PR? |
That behaviour was intended originally, but there seems to be a consensus that we should relax it a bit. |
I've added a test and updated
What are the documented limitations for
What does this mean?
Where is the user guide located? Thanks! |
I'm really sorry that we (me and @hvr) are demanding. I try to explain:
run The issue is that:
The scenario is not that different to #5073:
|
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 tested this change manually by running
cabal sdist
on https://github.com/RyanGlScott/cabal-sdist-bug/tree/910078306b4e127996bd7c9208a7e741b9f74351: