-
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.
Properly link filename compatibility checks into
cabal check
(#7479)
* Properly link filename compatibility checks into `cabal check` * Improve consistency and clarity of Check error messages
- Loading branch information
Showing
9 changed files
with
93 additions
and
100 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
Cabal-tests/tests/ParserTests/regressions/assoc-cpp-options.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 |
---|---|---|
@@ -1 +1 @@ | ||
'cpp-options': -traditional is not portable C-preprocessor flag | ||
'cpp-options: -traditional' is not a portable C-preprocessor flag. |
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
19 changes: 9 additions & 10 deletions
19
Cabal-tests/tests/ParserTests/regressions/denormalised-paths.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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
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'. | ||
'extra-source-files: files/**/*.txt/' is not good relative path: trailing slash | ||
'extra-source-files: files/../foo.txt' is not good relative path: parent directory segment: .. | ||
'license-file: LICENSE2/' is not good relative path: trailing slash | ||
'license-file: .' is not good relative path: trailing dot segment | ||
'hs-source-dirs: src/.' is not good relative path: trailing same directory segment: . | ||
'hs-source-dirs: src/../src' is not good relative path: parent directory segment: .. | ||
'hs-source-dirs: src/../../assoc/src' is not good relative path: parent directory segment: .. | ||
'hs-source-dirs: C:foo/bar' is not good relative path: reserved character ':' | ||
'hs-source-dirs: ||s' is not good relative path: reserved character '|' | ||
'hs-source-dirs: ../../assoc/src' is not good relative path: parent 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: 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: .." |
2 changes: 1 addition & 1 deletion
2
Cabal-tests/tests/ParserTests/regressions/extensions-paths-5054.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 |
---|---|---|
@@ -1 +1 @@ | ||
The package uses RebindableSyntax with OverloadedStrings or OverloadedLists in default-extensions, and also Paths_ autogen module. That configuration is known to cause compile failures with Cabal < 2.2. To use these default-extensions with Paths_ autogen module specify at least 'cabal-version: 2.2'. | ||
Packages using RebindableSyntax with OverloadedStrings or OverloadedLists in default-extensions, in conjunction with the autogenerated module Paths_*, are known to cause compile failures with Cabal < 2.2. To use these default-extensions with a Paths_* autogen module, specify at least 'cabal-version: 2.2'. |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,11 @@ | ||
synopsis: Fix bugs in filename validation | ||
packages: Cabal | ||
prs: #7429 #7479 | ||
issues: #7426 | ||
|
||
description: { | ||
|
||
- Relative paths starting with single-character directories are now properly allowed | ||
- `cabal check` rejects paths which are invalid on Windows or in tarballs | ||
|
||
} |
This file was deleted.
Oops, something went wrong.