-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
(windows) - plugins do not exit cleanly, if invoked from batch/ps1 script #73
Comments
Ok, on windows the child.id that gets returned is that of the Taskkill has an option
Process table
|
So looks like this is code that is executed on windows for
|
Yeah this definitely seems to be case
Using
|
xy problem.
Trying to get the pact-avro-plugin working on windows, with Std::Process::Command in rust.
It uses a batch file, which means we get a
terminate batch file y/n
prompt, and it fails to exit cleanly, leaving test to hang unless cancelled via task manager.We can replace it with a powershell script, to avoid the batch file prompt, but there is no way to invoke the powershell script, with powershell directly in the current impl, as we try and run the plugin entrypoint, from the plugins current working directory.
pact-plugins/drivers/rust/driver/src/plugin_manager.rs
Line 267 in e335629
could we potentially
args
are supplied, they are not able to be provided on a case by case basis (so only for windows). I anticipated I may need extra args, but only in windows.This follows on from austek/pact-avro-plugin#42
Where I now have the plugin starting and the tests passing, but the plugin is just failing to cleanly exit.
open to other ideas :)
The text was updated successfully, but these errors were encountered: