mock icon indicating copy to clipboard operation
mock copied to clipboard

feat: `mockgen` flag `--build_constraint` to add `//go:build` directives

Open ARR4N opened this issue 1 year ago • 1 comments

Resolves #190

Note that //go:generate has unusual handling of flags with spaces so the quotes have to include the flag name (example) for complex constraints. This revealed a bug in --write_generate_directive, which just prints space-delimited os.Args.

The workaround of using --copyright_file is neither viable (it adds a space between // and go:build) nor good practice as overloading functionality can result in bugs due to unanticipated usage (e.g. the aforementioned space).

ARR4N avatar Jul 05 '24 09:07 ARR4N

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 05 '24 09:07 CLAassistant

is this getting reviewed/merged any time soon?

jaceee avatar Sep 09 '24 17:09 jaceee

Hi, we need this functionality too. When we can get it?

Gris87 avatar Sep 18 '24 07:09 Gris87