Add check for recursive glob in root directory (#8441)
commitfff7a9819a530a7cbb29dad924313b3c15a4f4be
authorPaweł Dybiec <pawel@dybiec.info>
Wed, 18 Jan 2023 02:22:38 +0000 (18 02:22 +0000)
committerGitHub <noreply@github.com>
Wed, 18 Jan 2023 02:22:38 +0000 (18 02:22 +0000)
tree4b563e598877d420e03442837c9a3b86b328f53e
parent96dea0ffbace9488f355c6d56a2ab45ff33c3867
Add check for recursive glob in root directory (#8441)

* Add check for recursive glob in root directory

Such globs might be expensive to include, as they might pull unnecessary
 directories just like `.git` or `dist-newstyle`.

* Move expensive glob warning to its own constructor

* Add changelog entry

* Add test for recursive glob warning

* Fix formatting
Cabal/src/Distribution/PackageDescription/Check.hs
Cabal/src/Distribution/Simple/Glob.hs
cabal-testsuite/PackageTests/Check/ConfiguredPackage/Paths/RecursiveGlobInRoot/a.dat [new file with mode: 0644]
cabal-testsuite/PackageTests/Check/ConfiguredPackage/Paths/RecursiveGlobInRoot/a.md [new file with mode: 0644]
cabal-testsuite/PackageTests/Check/ConfiguredPackage/Paths/RecursiveGlobInRoot/cabal.out [new file with mode: 0644]
cabal-testsuite/PackageTests/Check/ConfiguredPackage/Paths/RecursiveGlobInRoot/cabal.test.hs [new file with mode: 0644]
cabal-testsuite/PackageTests/Check/ConfiguredPackage/Paths/RecursiveGlobInRoot/pkg.cabal [new file with mode: 0644]
changelog.d/pr-8441 [new file with mode: 0644]