myitcv / gobin

gobin is an experimental, module-aware command to install/run main packages.
BSD 3-Clause "New" or "Revised" License
219 stars 11 forks source link

main: do not print *exec.ExitError for -run #61

Closed myitcv closed 5 years ago

myitcv commented 5 years ago

Instead, rely on the program to output something sensible on stdout/stderr

myitcv commented 5 years ago

Yes, you're right. There's no real reason not to relay the right exit code.

I've copied the code from the upcoming Go 1.12 release locally to gobin, and added a test that ensures the correct exit code is relayed.

PTAL