Commit 6c487e12 authored by quasicomputational's avatar quasicomputational

Test for indicentally-fixed #5195.

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.
parent 7783ad1a
# cabal sdist
cabal: filepath wildcard './actually-a-directory' does not match any files.
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
cabal-version: 2.2
name: t5195
version: 0
extra-source-files:
./actually-a-directory
executable foo
default-language: Haskell2010
main-is: Main.hs
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment