Add check for recursive glob in root directory#8441
Add check for recursive glob in root directory#8441mergify[bot] merged 5 commits intohaskell:masterfrom
Conversation
| | (Left err, pat) <- zip globsExtraDocFiles $ extraDocFiles pkg | ||
| ] | ||
| ++ | ||
| [ PackageBuildWarning $ |
There was a problem hiding this comment.
Is this really a sintax error? Or a dangerous glob?
There was a problem hiding this comment.
It's not a syntax error. It should probably go to different constructor
There was a problem hiding this comment.
So, this is amended now? @ffaf1, could you perhaps give it another look?
There was a problem hiding this comment.
Moved it to separate constructor
jneira
left a comment
There was a problem hiding this comment.
this includes the changelog and test and looks fine, thanks!
|
@dyniec: when you are ready, please kindly set a squash label as in https://github.com/haskell/cabal/blob/master/CONTRIBUTING.md#github-pull-request-conventions. |
|
@mergify refresh |
✅ Pull request refreshed |
|
@mergify refresh |
✅ Pull request refreshed |
Such globs might be expensive to include, as they might pull unnecessary directories just like `.git` or `dist-newstyle`.
|
I did rebase changes on top of current master branch. According to Mergifyio/mergify#5055:
So rebase should get rid of error: Changes are exactly the same, but since it was force-push it probably warrants some re-review? |
|
Success! No, we don't re-review normally, unless the author prods us. Thank you very much for your contribution. |
Such globs might be expensive to include, as they might pull unnecessary
directories just like
.gitordist-newstyle.Solves #5311.
I would happily add tests for that, but I don't see any tests for warnings in cabal-check
Please include the following checklist in your PR:
Please also shortly describe how you tested your change. Bonus points for added tests!
Tested manually with .cabal file that uses expressions **/*.ext in
data-files,extra-source-filesandextra-doc-files.