-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make cabal check warn about globs that don't match anything
These globs make `haddock`, `sdist` and `install` die, so they definitely ought to be warned about! Because of the dying behaviour, I made the checks dist-inexcusable; starting from a clean slate I would probably have only made them suspicious, but this isn't terrible.
- Loading branch information
1 parent
6c1342a
commit 6a55a01
Showing
10 changed files
with
45 additions
and
6 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
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
4 changes: 1 addition & 3 deletions
4
cabal-testsuite/PackageTests/Check/MissingGlobDirectory2/cabal.out
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# cabal check | ||
Warning: The package will not build sanely due to these errors: | ||
Warning: This package description follows version 2.4 of the Cabal specification. This tool only supports up to version 2.3.0.0. | ||
Warning: The following errors will cause portability problems on other environments: | ||
Warning: In 'data-files': the pattern 'non-existent-directory/**/*.dat' attempts to match files in the directory 'non-existent-directory', but there is no directory by that name. | ||
Warning: In 'data-files': the pattern 'non-existent-directory/*.dat' attempts to match files in the directory 'non-existent-directory', but there is no directory by that name. | ||
Warning: Hackage would reject this package. |
4 changes: 2 additions & 2 deletions
4
cabal-testsuite/PackageTests/Check/MissingGlobDirectory2/pkg.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
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/Check/MultiDotGlob2.2/data/index.dat
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 @@ | ||
index.dat |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/Check/MultiDotGlob2.2/doc/index.html
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 @@ | ||
index.html |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/Check/MultiDotGlob2.2/src/index.js
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 @@ | ||
index.js |
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,4 @@ | ||
# cabal check | ||
Warning: The following errors will cause portability problems on other environments: | ||
Warning: In 'extra-doc-files': the pattern '*.html' does not match any files. | ||
Warning: Hackage would reject this package. |
3 changes: 3 additions & 0 deletions
3
cabal-testsuite/PackageTests/Check/NoGlobMatches/cabal.test.hs
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,3 @@ | ||
import Test.Cabal.Prelude | ||
main = cabalTest $ | ||
fails $ cabal "check" [] |
14 changes: 14 additions & 0 deletions
14
cabal-testsuite/PackageTests/Check/NoGlobMatches/pkg.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,14 @@ | ||
cabal-version: 2.2 | ||
name: pkg | ||
version: 0 | ||
extra-doc-files: | ||
*.html | ||
category: example | ||
maintainer: none@example.com | ||
synopsis: synopsis | ||
description: description | ||
license: BSD-3-Clause | ||
|
||
library | ||
exposed-modules: Foo | ||
default-language: Haskell2010 |