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 https://github.com/kubernetes/kubernetes/pull/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.
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 https://github.com/kubernetes/kubernetes/pull/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.