zapier / zapier-platform

The SDK for you to build an integration on Zapier
https://platform.zapier.com
Other
344 stars 188 forks source link

[Bug]: Too many open files in pnpm workspace #820

Open psteinroe opened 3 months ago

psteinroe commented 3 months ago

Bug Description

I am trying to setup a zapier app within a pnpm workspace monorepo with:

when I now run zapier build --skip-npm-install, it fails at Copying project to temp directory due too EMFILE: too many open files.

I did some debugging and it seems like the zapier cli is copying all node modules into the temp directory... It "works" if I change the map of promises in copyDir to a for loop to process the dirs one by one, but this takes a long time and includes a lot of unused dependencies. The cli must only include the dependencies of that workspace.

Reproduction Steps

see above

Zapier Platform version

15.10.0

Node.js version

20.3.0

Your Operating System

OS info: darwin-arm64 (macOS)

npm/yarn version

No response

App ID

No response

More Details

No response