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 Jun 27, 2023. It is now read-only.
We are facing an issue where mockgen -prog_only ... is exiting successfully, but outputting an empty file.
In our repo's build system (Bazel), the call to mockgen -prog_only is a cacheable build action. Not returning a failure in the case mentioned becomes problematic because Bazel caches the build action's output whenever the underlying command succeeds (returned an exit code 0). Meaning when mockgen fails to write to stdout and does not exit with a failure, we end up uploading an incorrect build artifact to our cache.
The text was updated successfully, but these errors were encountered:
We are facing an issue where
mockgen -prog_only ...
is exiting successfully, but outputting an empty file.In our repo's build system (Bazel), the call to
mockgen -prog_only
is a cacheable build action. Not returning a failure in the case mentioned becomes problematic because Bazel caches the build action's output whenever the underlying command succeeds (returned an exit code 0). Meaning whenmockgen
fails to write tostdout
and does not exit with a failure, we end up uploading an incorrect build artifact to our cache.The text was updated successfully, but these errors were encountered: