Closed jpopadak closed 4 years ago
Hi @jpopadak, sorry for the slow response. I've been pretty busy. I think I found the root cause. In
https://github.com/petergtz/pegomock/blob/master/pegomock/remove/remove.go#L155-L169
there is a missing Close
call. I will see when I get the time to fix it. Feel free to open a PR if you need it quickly and I'll be happy to merge it.
We have a ton of mocks (and matchers) in our project. However, we are getting to the point where we have so many that Pegomock tries to open all the files and remove them at the same time. This causes a
too many open files
error and does not successfully remove them all.