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).
Summary
This PR changes how we run
ipfs init
during setup. We already have a niceIPFS.runLocal
wrapper that cleanly handles stdout / stderr and checks exit codes for the IPFS process. We use it everywhere except when callingipfs 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