-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow glob matches of the form dir/**/FileNoExtension (#8005)
* allow glob matches of the form dir/**/FileNoExtension * allow glob matches of the form dir/**/FileNoExtension * tests, docs, changelong Co-authored-by: Gershom Bazerman <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
9ca9891
commit f60c9d7
Showing
9 changed files
with
86 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
Cabal-tests/tests/ParserTests/regressions/globstar-literal.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
cabal-version: 3.8 | ||
name: globstar-literal | ||
version: 0 | ||
extra-source-files: | ||
foo/**/bar | ||
|
||
license: BSD-3-Clause | ||
synopsis: no | ||
description: none | ||
category: Test | ||
maintainer: none | ||
|
||
library | ||
default-language: Haskell2010 | ||
exposed-modules: | ||
Foo |
Empty file.
16 changes: 16 additions & 0 deletions
16
Cabal-tests/tests/ParserTests/regressions/pre-3.8-globstar-literal.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
cabal-version: 3.6 | ||
name: globstar-literal | ||
version: 0 | ||
extra-source-files: | ||
foo/**/bar | ||
|
||
license: BSD-3-Clause | ||
synopsis: no | ||
description: none | ||
category: Test | ||
maintainer: none | ||
|
||
library | ||
default-language: Haskell2010 | ||
exposed-modules: | ||
Foo |
1 change: 1 addition & 0 deletions
1
Cabal-tests/tests/ParserTests/regressions/pre-3.8-globstar-literal.check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
In the 'extra-source-files' field: invalid file glob 'foo/**/bar'. Prior to 'cabal-version: 3.8' if a wildcard '**' is used as a parent directory, the file's base name must be a wildcard '*'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
synopsis: Allow glob-star matches with literal filenames (no extensions) | ||
packages: Cabal | ||
prs: #8005 | ||
issues: #5883 | ||
description: { | ||
|
||
- Cabal file glob syntax extended to allow matches of the form dir/**/FileNoExtension | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters