fission-codes / fission

Fission CLI & server
https://runfission.com/docs
119 stars 14 forks source link

Fix how setup runs ipfs init #519

Closed walkah closed 3 years ago

walkah commented 3 years ago

Summary

This PR changes how we run ipfs init during setup. We already have a nice IPFS.runLocal wrapper that cleanly handles stdout / stderr and checks exit codes for the IPFS process. We use it everywhere except when calling ipfs init. On some platforms (sometimes?) ipfs init would not complete before the subsequent commands tried to run - resulting in error messages (ipfs repo locked).

Fixes #499