-
Notifications
You must be signed in to change notification settings - Fork 293
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
refactor: Log child process command output on error #679
Conversation
Hey @zhemaituk - I believe I've fixed the CI issue, could you please rebase your branch against current |
A small addition to print out actual error details on child process failure. Refer to serverless#663 for issues details, when build fail for one or another reason, usually connected to configuration error and not library error, but no details are printed out.
@pgrzesik done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @zhemaituk 🙇
…alled correctly. - Make sure we're consistently quoting arguments. - Add mergeCommands function to construct a script for docker to run when needed. - Add getStripMode to run strip correctly for the platform and docker.
@zhemaituk @pgrzesik this PR should be reverted and and stdio provided to spawn call. try {
await spawn(cmd, args, {
stdio: 'inherit',
}); |
Could you provide more explanation @jeanbmar? I'm not sure I understand the problem fully |
A small addition to print out actual error details on child process failure. Refer to #663 for issues details, when build fail for one or another reason, usually connected to configuration error and not library error, but no details are printed out.