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
Requested feature
A way to disable generation of the “Generated by this command” comment.
Why the feature is needed
The comment has already been fixed to drop the path to mockgen, since that isn’t necessarily consistent. The same applies to paths provided as arguments; see kubernetes/kubernetes#120969 for one such instance (the copyright_file arguments point to files in temporary directories).
(Optional) Proposed solution
I am about to submit a PR adding an option to take care of this by adding a command-line option to disable it.
Another possibility would be to remove paths from file names provided as arguments, perhaps only if they are absolte, but that may not be generally desirable.
The text was updated successfully, but these errors were encountered:
The invocation command can be user specific, especially if absolute paths are used for the destination. This in turn can cause very large needless diffs that will create lots of source control noise and be distracting in PRs.
To remove these command comments simply pass `--write_command_comment=false` on the CLI. The default behavior is maintained.
Fixesuber-go#104.
The invocation command can be user specific, especially if absolute
paths are used for the destination. This in turn can cause very large
needless diffs that will create lots of source control noise and be
distracting in PRs.
To remove these command comments simply pass
`--write_command_comment=false` on the CLI. The default behavior is
maintained.
Fixes#104.
Requested feature
A way to disable generation of the “Generated by this command” comment.
Why the feature is needed
The comment has already been fixed to drop the path to
mockgen
, since that isn’t necessarily consistent. The same applies to paths provided as arguments; see kubernetes/kubernetes#120969 for one such instance (thecopyright_file
arguments point to files in temporary directories).(Optional) Proposed solution
I am about to submit a PR adding an option to take care of this by adding a command-line option to disable it.
Another possibility would be to remove paths from file names provided as arguments, perhaps only if they are absolte, but that may not be generally desirable.
The text was updated successfully, but these errors were encountered: