payload: {"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/12011","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/12011/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/12011/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/12011/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/12011","id":413663547,"node_id":"MDU6SXNzdWU0MTM2NjM1NDc=","number":12011,"title":"gatsby-source-filesystem fails with \"EMFILE: too many open files\" on Windows with lots of files","user":{"login":"FraserThompson","id":6093858,"node_id":"MDQ6VXNlcjYwOTM4NTg=","avatar_url":"https://avatars1.githubusercontent.com/u/6093858?v=4","gravatar_id":"","url":"https://api.github.com/users/FraserThompson","html_url":"https://github.com/FraserThompson","followers_url":"https://api.github.com/users/FraserThompson/followers","following_url":"https://api.github.com/users/FraserThompson/following{/other_user}","gists_url":"https://api.github.com/users/FraserThompson/gists{/gist_id}","starred_url":"https://api.github.com/users/FraserThompson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FraserThompson/subscriptions","organizations_url":"https://api.github.com/users/FraserThompson/orgs","repos_url":"https://api.github.com/users/FraserThompson/repos","events_url":"https://api.github.com/users/FraserThompson/events{/privacy}","received_events_url":"https://api.github.com/users/FraserThompson/received_events","type":"User","site_admin":false},"labels":[{"id":1038048834,"node_id":"MDU6TGFiZWwxMDM4MDQ4ODM0","url":"https://api.github.com/repos/gatsbyjs/gatsby/labels/status:%20confirmed","name":"status: confirmed","color":"adff60","default":false},{"id":779050110,"node_id":"MDU6TGFiZWw3NzkwNTAxMTA=","url":"https://api.github.com/repos/gatsbyjs/gatsby/labels/type:%20feature%20or%20enhancement","name":"type: feature or enhancement","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2019-02-23T06:23:25Z","updated_at":"2019-02-28T06:08:46Z","closed_at":null,"author_association":"NONE","body":"## Description\r\n\r\nWhen I try to gatsby build a site with around 9,500 files in the src folder on Windows 10 I get this error and the build fails:\r\n\r\n` Error: EMFILE: too many open files`\r\n\r\nIt specifies the error occurred on an image file (usually a different one each time).\r\n\r\n### Steps to reproduce\r\n\r\nMy project is an incredibly image heavy website, and it uses gatsby-source-filesystem, gatsby-image and gatsby-transformer-sharp to process the images. \r\n\r\nI have lots of folders containing lots of images like this:\r\n\r\n`content/gigs/[gig name]/[artist_name]/[image1.jpg,image2.jpg,etc]`\r\n\r\nIn each gig folder there's an index.md which contains metadata for the page. I use a graphql query in gatsby-node.js to turn these markdown files into pages via a template. The template uses a graphql querie and a regex injected via gatsby-node.js to get the images in the folder for that page.\r\n\r\nQuite impressively it succeeds with 8,503 files but starts failing if I add in more.\r\n\r\nAll the code is here: https://github.com/FraserThompson/dunedinsound.com/tree/gatsby\r\n\r\n### Expected result\r\n\r\nI expected it to be able to build my site because the documentation doesn't mention file limits.\r\n\r\n### Actual result\r\n\r\nThe build doesn't succeed.\r\n\r\n### Environment\r\n\r\n`gatsby info --clipboard` fails for me, probably because of https://github.com/gatsbyjs/gatsby/issues/11496, but this is the output of gatsby info:\r\n\r\n\r\n System:\r\n    OS: Windows 10\r\n    CPU: (16) x64 AMD Ryzen 7 2700X Eight-Core Processor\r\n  Binaries:\r\n    Yarn: 1.13.0 - C:\\Program Files (x86)\\Yarn\\bin\\yarn.CMD\r\n  Browsers:\r\n    Edge: 44.17763.1.0\r\n  npmPackages:\r\n    gatsby: ^2.1.4 => 2.1.4\r\n    gatsby-image: ^2.0.22 => 2.0.29\r\n    gatsby-plugin-feed: ^2.0.8 => 2.0.13\r\n    gatsby-plugin-google-analytics: ^2.0.5 => 2.0.14\r\n    gatsby-plugin-manifest: ^2.0.5 => 2.0.17\r\n    gatsby-plugin-offline: ^2.0.5 => 2.0.23\r\n    gatsby-plugin-react-helmet: ^3.0.0 => 3.0.6\r\n    gatsby-plugin-sharp: ^2.0.20 => 2.0.20\r\n    gatsby-plugin-styled-components: ^3.0.4 => 3.0.5\r\n    gatsby-plugin-typography: ^2.2.0 => 2.2.7\r\n    gatsby-remark-copy-linked-files: ^2.0.5 => 2.0.9\r\n    gatsby-remark-images: ^2.0.4 => 2.0.6\r\n    gatsby-remark-prismjs: ^3.0.0 => 3.2.4\r\n    gatsby-remark-smartypants: ^2.0.5 => 2.0.8\r\n    gatsby-source-filesystem: ^2.0.2 => 2.0.20\r\n    gatsby-transformer-remark: ^2.1.15 => 2.2.5\r\n    gatsby-transformer-sharp: ^2.1.13 => 2.1.13\r\n"},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/468150283","html_url":"https://github.com/gatsbyjs/gatsby/issues/12011#issuecomment-468150283","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/12011","id":468150283,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2ODE1MDI4Mw==","user":{"login":"yogeshkotadiya","id":9676379,"node_id":"MDQ6VXNlcjk2NzYzNzk=","avatar_url":"https://avatars3.githubusercontent.com/u/9676379?v=4","gravatar_id":"","url":"https://api.github.com/users/yogeshkotadiya","html_url":"https://github.com/yogeshkotadiya","followers_url":"https://api.github.com/users/yogeshkotadiya/followers","following_url":"https://api.github.com/users/yogeshkotadiya/following{/other_user}","gists_url":"https://api.github.com/users/yogeshkotadiya/gists{/gist_id}","starred_url":"https://api.github.com/users/yogeshkotadiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogeshkotadiya/subscriptions","organizations_url":"https://api.github.com/users/yogeshkotadiya/orgs","repos_url":"https://api.github.com/users/yogeshkotadiya/repos","events_url":"https://api.github.com/users/yogeshkotadiya/events{/privacy}","received_events_url":"https://api.github.com/users/yogeshkotadiya/received_events","type":"User","site_admin":false},"created_at":"2019-02-28T06:08:46Z","updated_at":"2019-02-28T06:08:46Z","author_association":"MEMBER","body":"@FraserThompson Use `fs-extra` module since it's already added in package.json and also `fs-extra` is built on top of `graceful-fs` and it's a drop-in replacement for `fs` module."}}
other: {"actor":{"display_login":"yogeshkotadiya"}}