-
Notifications
You must be signed in to change notification settings - Fork 723
Reimplement cabal check
#8427
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
Merged
Merged
Reimplement cabal check
#8427
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
1d2765a
Fix Semigroup target instance
ffaf1 152bed8
Add `desugarBuildToolSimple`
ffaf1 eef2be1
Reimplement cabal check
ffaf1 b24c601
Reorder test output
ffaf1 1a2f184
Fix autogen modules tests .cabal files
ffaf1 083a642
Add a number of tests
ffaf1 7566f7d
Add changelog for #8427
ffaf1 09a4d82
Integrate various reviews
ffaf1 a0ac130
Move internal Check modules to `other-modules`
ffaf1 bd5bbad
Make fourmolu happy
ffaf1 148d8dd
Do not check for OptO in scripts
ffaf1 87ca482
Remove useless PackageId parameter
ffaf1 3237766
Do not check PVP on internal targets
ffaf1 822ada5
Make hlint happy
ffaf1 e0cbccc
Fix #9122
ffaf1 d52f1e9
Fix grammar
ffaf1 a051dd6
Integrate Brandon’s review: grammar
ffaf1 d4e43fc
Remove unnecessary `-fvia-C` check
ffaf1 e6917e1
Merge branch 'master' into soc-pull
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
6 changes: 3 additions & 3 deletions
6
Cabal-tests/tests/ParserTests/regressions/all-upper-bound.check
This file contains hidden or 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,6 @@ | ||
| These packages miss upper bounds: | ||
| On library, these packages miss upper bounds: | ||
| - somelib | ||
ulysses4ever marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - alphalib | ||
| - betalib | ||
| - deltalib | ||
| - somelib | ||
| Please add them, using `cabal gen-bounds` for suggestions. For more information see: https://pvp.haskell.org/ | ||
| Please add them. There is more information at https://pvp.haskell.org/ | ||
2 changes: 1 addition & 1 deletion
2
Cabal-tests/tests/ParserTests/regressions/bad-glob-syntax.check
This file contains hidden or 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,2 +1,2 @@ | ||
| In the 'extra-source-files' field: invalid file glob 'foo/blah-*.hs'. Wildcards '*' may only totally replace the file's base name, not only parts of it. | ||
| In the 'extra-source-files' field: invalid file glob 'foo/*/bar'. A wildcard '**' is only allowed as the final parent directory. Stars must not otherwise appear in the parent directories. | ||
| In the 'extra-source-files' field: invalid file glob 'foo/blah-*.hs'. Wildcards '*' may only totally replace the file's base name, not only parts of it. | ||
ffaf1 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or 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
15 changes: 9 additions & 6 deletions
15
Cabal-tests/tests/ParserTests/regressions/denormalised-paths.check
This file contains hidden or 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,11 +1,14 @@ | ||
| The 'subdir' field of a source-repository is not a good relative path: "trailing same directory segment: ." | ||
| The paths 'files/<>/*.txt', 'c/**/*.c', 'C:foo/bar', '||s' are invalid on Windows, which would cause portability problems for this package. Windows file names cannot contain any of the characters ":*?<>|" and there a few reserved names including "aux", "nul", "con", "prn", "com1-9", "lpt1-9" and "clock$". | ||
| 'hs-source-dirs: ../../assoc/src' is a relative path outside of the source tree. This will not work when generating a tarball with 'sdist'. | ||
| The 'subdir' field of a source-repository is not a good relative path: "trailing same directory segment: ." | ||
| 'extra-source-files: files/**/*.txt/' is not a good relative path: "trailing slash" | ||
| 'extra-source-files: files/../foo.txt' is not a good relative path: "parent directory segment: .." | ||
| 'license-file: LICENSE2/' is not a good relative path: "trailing slash" | ||
| 'license-file: .' is not a good relative path: "trailing dot segment" | ||
| 'hs-source-dirs: ../../assoc/src' is not a good relative path: "parent directory segment: .." | ||
| 'hs-source-dirs: src/.' is not a good relative path: "trailing same directory segment: ." | ||
| 'hs-source-dirs: src/../src' is not a good relative path: "parent directory segment: .." | ||
| 'hs-source-dirs: src/../../assoc/src' is not a good relative path: "parent directory segment: .." | ||
| 'hs-source-dirs: ../../assoc/src' is not a good relative path: "parent directory segment: .." | ||
| 'hs-source-dirs: src/../src' is not a good relative path: "parent directory segment: .." | ||
ffaf1 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 'license-file: .' is not a good relative path: "trailing dot segment" | ||
| 'license-file: LICENSE2/' is not a good relative path: "trailing slash" | ||
| The path 'C:foo/bar' is invalid on Windows, which would cause portability problems for this package. Windows file names cannot contain any of the characters ":*?<>|" and there a few reserved names including "aux", "nul", "con", "prn", "com1-9", "lpt1-9" and "clock$". | ||
| The path 'c/**/*.c' is invalid on Windows, which would cause portability problems for this package. Windows file names cannot contain any of the characters ":*?<>|" and there a few reserved names including "aux", "nul", "con", "prn", "com1-9", "lpt1-9" and "clock$". | ||
| The path 'files/<>/*.txt' is invalid on Windows, which would cause portability problems for this package. Windows file names cannot contain any of the characters ":*?<>|" and there a few reserved names including "aux", "nul", "con", "prn", "com1-9", "lpt1-9" and "clock$". | ||
| The path '||s' is invalid on Windows, which would cause portability problems for this package. Windows file names cannot contain any of the characters ":*?<>|" and there a few reserved names including "aux", "nul", "con", "prn", "com1-9", "lpt1-9" and "clock$". | ||
This file contains hidden or 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,2 +1,2 @@ | ||
| 'ghc-options: -j[N]' can make sense for specific user's setup, but it is not appropriate for a distributed package. Alternatively, if you want to use this, make it conditional based on a Cabal configuration flag (with 'manual: True' and 'default: False') and enable that flag during development. | ||
| 'ghc-shared-options: -j[N]' can make sense for specific user's setup, but it is not appropriate for a distributed package. Alternatively, if you want to use this, make it conditional based on a Cabal configuration flag (with 'manual: True' and 'default: False') and enable that flag during development. | ||
| 'ghc-options: -j[N]' can make sense for a particular user's setup, but it is not appropriate for a distributed package. Alternatively, if you want to use this, make it conditional based on a Cabal configuration flag (with 'manual: True' and 'default: False') and enable that flag during development. | ||
| 'ghc-shared-options: -j[N]' can make sense for a particular user's setup, but it is not appropriate for a distributed package. Alternatively, if you want to use this, make it conditional based on a Cabal configuration flag (with 'manual: True' and 'default: False') and enable that flag during development. |
This file contains hidden or 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,6 @@ | ||
| issue-774.cabal:13:22: Packages with 'cabal-version: 1.12' or later should specify a specific version of the Cabal spec of the form 'cabal-version: x.y'. Use 'cabal-version: 1.12'. | ||
| 'ghc-options: -rtsopts' has no effect for libraries. It should only be used for executables. | ||
| 'ghc-options: -with-rtsopts' has no effect for libraries. It should only be used for executables. | ||
| No 'category' field. | ||
| No 'maintainer' field. | ||
| The 'license' field is missing or is NONE. | ||
| 'ghc-options: -rtsopts' has no effect for libraries. It should only be used for executables. | ||
| 'ghc-options: -with-rtsopts' has no effect for libraries. It should only be used for executables. |
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2
Cabal-tests/tests/ParserTests/regressions/pre-2.4-globstar.check
This file contains hidden or 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,3 +1,3 @@ | ||
| In the 'data-files' field: invalid file glob 'foo/**/*.dat'. Using the double-star syntax requires 'cabal-version: 2.4' or greater. Alternatively, for compatibility with earlier Cabal versions, list the included directories explicitly. | ||
| In the 'extra-source-files' field: invalid file glob 'foo/**/*.hs'. Using the double-star syntax requires 'cabal-version: 2.4' or greater. Alternatively, for compatibility with earlier Cabal versions, list the included directories explicitly. | ||
| In the 'extra-doc-files' field: invalid file glob 'foo/**/*.html'. Using the double-star syntax requires 'cabal-version: 2.4' or greater. Alternatively, for compatibility with earlier Cabal versions, list the included directories explicitly. | ||
| In the 'extra-source-files' field: invalid file glob 'foo/**/*.hs'. Using the double-star syntax requires 'cabal-version: 2.4' or greater. Alternatively, for compatibility with earlier Cabal versions, list the included directories explicitly. |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.