-
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
Add check for recursive glob in root directory #8441
Conversation
| (Left err, pat) <- zip globsExtraDocFiles $ extraDocFiles pkg | ||
] | ||
++ | ||
[ PackageBuildWarning $ |
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.
Is this really a sintax error? Or a dangerous glob?
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.
It's not a syntax error. It should probably go to different constructor
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.
So, this is amended now? @ffaf1, could you perhaps give it another look?
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.
@ffaf1: ping?
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.
Moved it to separate constructor
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 includes the changelog and test and looks fine, thanks!
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.
Very good.
@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
.git
ordist-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-files
andextra-doc-files
.