-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spawn NOENT on windows #4
Comments
then something like this would go here if (process.platform === 'win32') {
value = value.replace(/^([\\\/.:\w\-]+)/ig, "$&.cmd");
} doing this get |
Yeah, we should use bevry/safeps for this, it'll handle it automatically. |
actually, exec plugin already uses safeps... so we need to find out why safeps wasn't fixing this for us... perhaps it's because we are giving it one string instead of an array |
this is where it should work: |
doh I didnt see your last two comments until now. It maybe because of the opts.safe not being true in the exec plugin? I made a pr but it looks like it should handle it just not triggering ? |
Because node on windows needs to specify the .cmd extension when were using spawn then commands like
chainy install common
fail with spawn NOENT during lines like thisif we parsed all chainy-plugin-exec command lines (windows only) with a regexp that extends the first word to include
.cmd
then maybe we can work around with minimal fuss.@balupton something similar to this?
The text was updated successfully, but these errors were encountered: