Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
code generators are silent #53791
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
$ deepcopy-gen -v 5 -i ./apis/cr/v1 -h /dev/null (no output)
Anything else we need to know?:
Using an updated
$ deepcopy-gen -v 5 -i ./apis/cr/v1 -h /dev/null ... ERROR: logging before flag.Parse: I1012 13:05:22.300800 39771 deepcopy.go:545] Generating deepcopy function for type k8s.io/apiextensions-apiserver/examples/client-go/apis/cr/v1.ExampleSpec ERROR: logging before flag.Parse: I1012 13:05:22.301055 39771 deepcopy.go:545] Generating deepcopy function for type k8s.io/apiextensions-apiserver/examples/client-go/apis/cr/v1.ExampleStatus ERROR: logging before flag.Parse: I1012 13:05:22.301313 39771 execute.go:67] Assembling file "/go/src/k8s.io/apiextensions-apiserver/examples/client-go/apis/cr/v1/deepcopy_generated.go" ERROR: logging before flag.Parse: I1012 13:05:22.307813 39771 main.go:87] Completed successfully.
The short answer seems to be that
I can't figure out why the loglevel is not set properly in that particular case. @sttts any idea maybe?
@stts I'm on the master branch. I haven't tried
Like I said, if I delete the vendored glog and use
(and just to provide a little bit more context, the issue I was trying to troubleshoot was that my deepcopy file didn't get generated. I figured out the deepcopy flag was not in
Now that I got more familiar with
I figured most projects I've been using set
Would you be open to a PR that sets this as the default for all generators?