Skip to content

Commit e9f4556

Browse files
committed
Add test for recursive glob warning
1 parent db0e2fa commit e9f4556

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

cabal-testsuite/PackageTests/Check/ConfiguredPackage/Paths/RecursiveGlobInRoot/a.dat

Whitespace-only changes.

cabal-testsuite/PackageTests/Check/ConfiguredPackage/Paths/RecursiveGlobInRoot/a.md

Whitespace-only changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# cabal check
2+
Warning: These warnings may cause trouble when distributing the package:
3+
Warning: In the 'data-files': glob '**/*.dat' starts at project root
4+
directory, this might include `.git/`, ``dist-newstyle/``, or other large
5+
directories!
6+
Warning: In the 'extra-source-files': glob '**/*.hs' starts at project root
7+
directory, this might include `.git/`, ``dist-newstyle/``, or other large
8+
directories!
9+
Warning: In the 'extra-doc-files': glob '**/*.md' starts at project root
10+
directory, this might include `.git/`, ``dist-newstyle/``, or other large
11+
directories!
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import Test.Cabal.Prelude
2+
3+
main = cabalTest $
4+
cabal "check" []
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
cabal-version: 3.8
2+
name: pkg
3+
version: 0
4+
extra-source-files:
5+
**/*.hs
6+
data-files:
7+
**/*.dat
8+
extra-doc-files:
9+
**/*.md
10+
license: BSD-3-Clause
11+
synopsis: no
12+
description: none
13+
category: Test
14+
maintainer: none
15+
16+
library
17+
default-language: Haskell2010
18+
exposed-modules:
19+
Foo

0 commit comments

Comments
 (0)