-
Notifications
You must be signed in to change notification settings - Fork 691
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
Too many open files with cabal new-sdist and many data-files #5541
Comments
It's quite possible |
This means files aren't getting closed correctly, because if |
I've been looking at the code and thinking about this for the last bit, and I just do not see how this bug is possible. I can see two options:
Neither of these seems particularly plausible, but there has to be something going on. |
Lazy I/O? A missing |
I don't see any obvious resource acquisitions, so I'm pretty close to saying (through the process of elimination) it's (curses!) lazy IO. |
So I need to slurp the whole file into memory and then convert that strict BS into a lazy BS, I guess. |
NB: this was already cherry-picked to 2.4 |
Thanks! |
A project that I was trying to build contains one package (
ghc-toolkit
) that has 1054 files indata-files
defined(https://github.com/tweag/asterius/tree/caf15690c54aef3ae4eecbc7224c6163de040f7a/ghc-toolkit).
It also contains another package
genapply
that does not even depend onghc-toolkit
.I can run
cabal new-build genapply
just fine. But if I runcabal new-install genapply
, I getInterestingly,
works, but
does not.
So maybe there are two issues here:
cabal new-install
creates moresdists
than it has to.cabal new-sdist
does not work well with large number ofdata-files
.The text was updated successfully, but these errors were encountered: