-
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.
I fixed this in passing with #5284, but let's add a test to make sure it stays fixed. The error message isn't perfect, but it's a lot better than failing silently! Closes #5195.
- Loading branch information
1 parent
7783ad1
commit 6c487e1
Showing
4 changed files
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
main = putStrLn "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,2 @@ | ||
# cabal sdist | ||
cabal: filepath wildcard './actually-a-directory' does not match any files. |
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,6 @@ | ||
import Test.Cabal.Prelude | ||
main = cabalTest $ do | ||
tmpdir <- fmap testTmpDir getTestEnv | ||
let fn = tmpdir </> "sources" | ||
res <- fails $ cabal' "sdist" ["--list-sources=" ++ fn] | ||
assertOutputContains "filepath wildcard './actually-a-directory' does not match any files" res |
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,10 @@ | ||
cabal-version: 2.2 | ||
name: t5195 | ||
version: 0 | ||
|
||
extra-source-files: | ||
./actually-a-directory | ||
|
||
executable foo | ||
default-language: Haskell2010 | ||
main-is: Main.hs |