forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure sdist is robust to accidentally-listed directories
The refactor of the globbing modules re-uncovered this issue, and required a prompt fix for the refactor not to break some things. Fixes haskell#5349
- Loading branch information
Showing
14 changed files
with
86 additions
and
40 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/SDist/T5195and5349/actually-a-file
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 @@ | ||
Hi |
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,5 @@ | ||
# cabal v2-sdist | ||
Warning: Ignoring directory '././actually-a-directory' listed in field 'data-files' in the Cabal package. This field can only include files (not directories). | ||
Warning: Ignoring directory './actually-a-directory' listed in field 'extra-source-files' in the Cabal package. This field can only include files (not directories). | ||
Warning: Ignoring directory './actually-a-directory' listed in field 'extra-doc-files' in the Cabal package. This field can only include files (not directories). | ||
Wrote source list to <TMPDIR>/t5195and5349-0.list |
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/SDist/T5195and5349/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,5 @@ | ||
import Test.Cabal.Prelude | ||
main = cabalTest $ do | ||
tmpdir <- fmap testTmpDir getTestEnv | ||
cabal' "v2-sdist" ["--list-only", "--output-directory", tmpdir] | ||
return () |
19 changes: 19 additions & 0 deletions
19
cabal-testsuite/PackageTests/SDist/T5195and5349/t5195and5349.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,19 @@ | ||
cabal-version: 2.2 | ||
name: t5195and5349 | ||
version: 0 | ||
|
||
extra-source-files: | ||
./actually-a-directory | ||
./actually-a-file | ||
|
||
extra-doc-files: | ||
./actually-a-directory | ||
./actually-a-file | ||
|
||
data-files: | ||
./actually-a-directory | ||
./actually-a-file | ||
|
||
executable foo | ||
default-language: Haskell2010 | ||
main-is: Main.hs |