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
Merge two Globbing Modules and Fix #5349 #9673
Conversation
ec89210
to
f073032
Compare
94f6658
to
38baa6a
Compare
Ah, interesting failure: https://github.com/haskell/cabal/actions/runs/7745458515/job/21121495479?pr=9673#step:19:52 |
cabal-testsuite/PackageTests/Check/ConfiguredPackage/Paths/AbsolutePath/cabal.out
Show resolved
Hide resolved
Also this is Template A. |
3ac666b
to
8c82552
Compare
c4f092d
to
9d30afb
Compare
@andreabedini light ping. Sam has improved the MR and addressed the rest of the review. |
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.
This comment still has to be addressed
Also this is Template A.
I replied here:
|
@fgaz what specifically do you think we're missing? |
Oh, sorry, I missed that comment. If the Cabal API changed pheraps add a changelog entry and/or |
I'm ok but please do add a changelog entry and @SInCE annotations and consider explicitly listing the intended exports of Distribution.Simple.Glob. |
7cb8fcb
to
7b882a3
Compare
The only changes in the user-facing API are:
I made a separate |
Done. |
47aa159
to
6475ac4
Compare
6475ac4
to
0852ae7
Compare
We use the datatype representation from the globbing in cabal-install, but preserve a standalone parser for globs present in cabal files, whose specification is constrained by the cabal specification. The implementations are merged taking the best parts of each. We also make sure sdist is robust to accidentally-listed directories, as the refactor of the globbing modules re-uncovered this issue, and required a prompt fix for the refactor not to break some things. Fixes haskell#5349
0852ae7
to
e2019f5
Compare
Merge the two Globbing modules in cabal and cabal-install
We use the datatype representation from the globbing in cabal-install,
but preserve a standalone parser for globs present in cabal files, whose
specification is constrained by the cabal specification. The
implementations are merged taking the best parts of each.
and
Make sure sdist is robust to accidentally-listed directories
The refactor of the globbing modules re-uncovered this issue, and
required a prompt fix for the refactor not to break some things.
Fixes #5349
Template Β: This PR does not modify
cabal
behaviour (documentation, tests, refactoring, etc.)Include the following checklist in your PR: