postmanlabs / postman-code-generators

Common repository for all code generators shipped with Postman
Apache License 2.0
991 stars 350 forks source link

post-install script hangs when using pnpm in a project with * as package descriptor #772

Open gonzalob opened 4 weeks ago

gonzalob commented 4 weeks ago

When using '*' as package definition for a pnpm workspace, the post-install script hangs until it triggers an OOM. Looks like it's spawning infinite shells to build itself recursively.

To reproduce:

tripheo0412 commented 1 week ago

Want to shed some light on this matter, I think this is a pnpm issue.

A work around is to somehow ignore the postinstall script and manually run it. In my case, I have to fork the repo, rename the postinstall script to "postinstall-custom". Then after pnpm install, I will go directly to the postman-code-generators and run pnpm postinstall-custom

My setup: