purescript-contrib / pulp

A build tool for PureScript projects
GNU Lesser General Public License v3.0
445 stars 86 forks source link

`pulp publish` fails for large bower resolution file #413

Closed sigma-andex closed 2 years ago

sigma-andex commented 2 years ago

pulp publish fails without error message when the project results in a large bower resolution file.

Upon debugging, I found out that something is broken with the gzip stream that gzips the generated bower resolutions file. This appears to happen only if the bower resolutions file is large. I think somehow the stream doesnt catch up with it and somehow fails.

I have provided a fix in #412 that creates a stream from the bower resolutions file string and pipes it into the gzip stream.