You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.
While trying out this package, I noticed that outputs from commands such as flutter format, flutter analyze and flutter test are not displayed because even though result.exitCode is 1, the output is in result.stdout instead of result.stderr. Therefore, we get a blank output.
Also, if result.exitCode is 1, I think it should be propagated/forwared, so whatever command you ran will fail. Currently, if I ran git push in a repo with failing test or invalid syntax, I won't see any output and the command will succeed.
I've tried an approach to solve this and can send a PR if you agree with the points above.
Hi! 👋
While trying out this package, I noticed that outputs from commands such as
flutter format
,flutter analyze
andflutter test
are not displayed because even thoughresult.exitCode
is 1, the output is inresult.stdout
instead ofresult.stderr
. Therefore, we get a blank output.Also, if
result.exitCode
is 1, I think it should be propagated/forwared, so whatever command you ran will fail. Currently, if I rangit push
in a repo with failing test or invalid syntax, I won't see any output and the command will succeed.I've tried an approach to solve this and can send a PR if you agree with the points above.
Example repo: https://github.com/arthurdenner/lefthook_error_example
In the repo above, the last commit should've failed, but it didn't.
The text was updated successfully, but these errors were encountered: