Closed mikaelkaron closed 7 years ago
This solves cross platform spawning (in my case win 10.64) problems experienced in Stackvana/microservice-examples#1. There's still another problem in that ticket but it's more about the state of process.stdin
in a bash-on-ubuntu shell than a pure spawn problem.
@ljharb -
We were having reports of microcule
failing on Windows. I tried adding path.normalize
, but still issues.
Do you have any quick suggestions for testing on windows? Cloud based? I'm away from my PC for a couple of days and don't prefer to setup a VM. Can't test anything on Windows at the moment.
@mikaelkaron -
Does this resolve your windows issues?
I'm not against adding a new dependency, but I'd like to understand exactly what the issue is ( and if we can possibly resolve it with a few lines of code instead of a new dependency )
It does. I think this also adds support for hashbang's on windows (not an out of the box solution) so we can avoid adding code for that (basically it's more than just fixing spawn, it's also helping you to stay portable)
@Marak i've never set it up, but supposedly appveyor is like travis for windows
Would it be possible to merge this? If not what are the concerns?
@mikaelkaron Has been merged into master
and is now pending release.
Sorry for the delay. microcule
is used in a production and we need to be careful in making any cross-cutting changes. Going to push this out and see how it performs.
Thank you for your contribution.
I understand. If this affects performance I can try to take another stab at it but this was the simplest patch I could think of. Thank you for the merge.
This uses
cross-spawn
instead of vanillachild_process
for spawning new processes.