-
Notifications
You must be signed in to change notification settings - Fork 696
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
cabal sdist with directory listed in extra-source-files silently fails #5195
Comments
Awesome! The relevant part of Cabal is https://github.com/haskell/cabal/blob/master/Cabal/Distribution/Simple/SrcDist.hs#L145. If you need further pointers, just ask. |
@23Skidoo , sorry for the delay on this. I've finally got a little freedom to work on this. Looks like the line you linked has moved but that file seems mostly straight-forward. Is it a known discrepancy that in the cabal file there is an |
|
Alright, I'll have to dive into it one more time. Thanks for the sanity check! |
I fixed this in passing with haskell#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 haskell#5195.
When a directory gets added to
extra-source-files
,cabal sdist
silently fails. Using strace revealed the error was due to a directory in theextra-source-files
directive, but cabal itself didn't indicate any issue other than an exit code of 1.It would be nice if mistakes like this could have an error message indicating roughly where and what to look for to get things working again.
Let me know if any other information is useful and I'll be sure to add it.
If anyone is willing to point me in the right direction, I'm more than happy to put forth an effort to work this issue myself as well.
The text was updated successfully, but these errors were encountered: