fix(ci): check command out for error when git fails#63993
Conversation
|
Im wondering whether we should do something more generic for this, because this tends to come up anywhere exec.Command is used 😄 imo we should have a generic exec.Command wrapper that includes stderr + the exit code in the returned error always. Thoughts @BolajiOlajide @burmudar ? |
I agree with you @Strum355 - I see a few attempts at this has been made if I look at Maybe a initial wrapper that just does the error stuff and we add a depguard lint check to not allow exec import under |
Funny thing is I created the linked package lol, I totally forgot that. I'll switch to using that. |
|
note that the linked package doesnt seem to make use of stderr, Id probably just unconditionally include stderr along with exit code in the |
… changes. Lines starting
Closes #1110
Closes DINF-96
We don't print the stdErr when a command fails … in particular when git fails. Therefore we see very little in the panic of what went wrong.
Explanation:
Test plan
Manual testing
Changelog