You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running melos commands fails with a FileSystemException due to “Too many open files” when the project contains a large number of local packages. In our Flutter project, we have over 290 packages, and the error occurs when the number of open files exceeds the system’s ulimit -n value.
The root cause seems to be Melos trying to read all the pubspec.yaml files in parallel, which results in too many simultaneous file operations.
mahmuttaskiran
changed the title
fix: melos bootstrap fails with “OS Error: Too many open files” when working with large projects
fix: melos commands fails with “OS Error: Too many open files” when working with large projects
Dec 14, 2024
Is there an existing issue for this?
Version
6.1.0
Description
Running melos commands fails with a FileSystemException due to “Too many open files” when the project contains a large number of local packages. In our Flutter project, we have over 290 packages, and the error occurs when the number of open files exceeds the system’s ulimit -n value.
The root cause seems to be Melos trying to read all the pubspec.yaml files in parallel, which results in too many simultaneous file operations.
Err details:
Steps to reproduce
Expected behavior
Melos shouldn't do file operations in parallel at once for reading pubspec.yaml files for packages. There should be a Pool limited to a number.
Screenshots
No response
Additional context and comments
No response
The text was updated successfully, but these errors were encountered: