-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output 'Code generated by' comment if arg is set #94
Conversation
Do we need a way to customize the string? If the output language is not Go (do we have that? openapi or protobuf?), the string must be customizable (not via flag, but via code, i.e. optionally). |
Yes, one of these generators makes protobuf...
…On Thu, Jan 11, 2018 at 12:03 PM, Dr. Stefan Schimanski < ***@***.***> wrote:
Do we need a way to customize the string? If the output language is not Go
(do we have that? openapi or protobuf?), the string must be customizable
(not via flag, but via code, i.e. optionally).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#94 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAnglv1lZp4rhnVT9AlP4CjDWDyZPeWyks5tJmkIgaJpZM4RbQxS>
.
|
I believe the proto files already have https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/api/admission/v1beta1/generated.proto#L18
which this pr shouldn't affect. |
args/args.go
Outdated
@@ -92,6 +96,7 @@ func (g *GeneratorArgs) AddFlags(fs *pflag.FlagSet) { | |||
fs.StringVarP(&g.OutputPackagePath, "output-package", "p", g.OutputPackagePath, "Base package path.") | |||
fs.StringVarP(&g.OutputFileBaseName, "output-file-base", "O", g.OutputFileBaseName, "Base name (without .go suffix) for output files.") | |||
fs.StringVarP(&g.GoHeaderFilePath, "go-header-file", "h", g.GoHeaderFilePath, "File containing boilerplate header text. The string YEAR will be replaced with the current 4-digit year.") | |||
fs.BoolVar(&g.GeneratedByComment, "go-generated-by-comment", g.GeneratedByComment, `Add a "Code generated by" comment into each file.`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we even need a flag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would drop it. It's something the generator builder decides.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems right to me
But it should be replaced with the generic mechanism, right? But if protobuf is happy with |
@sttts it should now address the comments. Replacing I wonder if |
Oh looks like #24 is dropping the |
args/args.go
Outdated
generatorPath := strings.Split(os.Args[0], "/") | ||
generatorName := generatorPath[len(generatorPath)-1] | ||
generatedByComment = strings.Replace(g.GeneratedByCommentTemplate, "GENERATOR_NAME", generatorName) | ||
s := fmt.Sprintf("\n%s\n\n", generatedByComment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first newline is not necessary if the file is empty (which it is e.g. in OpenShift)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it could be removed entirely, since the licences usually end with an extra \n
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also it would be hard to tell if the the newline should be printed if there is // +build !ignore_autogenerated
above the boilerplate
args/args.go
Outdated
if g.GeneratedByCommentTemplate != "" { | ||
generatorPath := strings.Split(os.Args[0], "/") | ||
generatorName := generatorPath[len(generatorPath)-1] | ||
generatedByComment = strings.Replace(g.GeneratedByCommentTemplate, "GENERATOR_NAME", generatorName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be :=
and needs an extra argument of -1
c76fa61
to
42c1755
Compare
Looks like I still have to change the example generators to get their outputs to match the test outputs |
boilerplate/boilerplate.go.txt
Outdated
@@ -1,5 +1,5 @@ | |||
/* | |||
Copyright YEAR The Kubernetes Authors. | |||
Copyright 2017 The Kubernetes Authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure this is not the right place for this change but since #91 hasn't merged yet, this is necessary to check that the behavior of the example generators isn't affected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except boilerplate delta
examples/set-gen/main.go
Outdated
@@ -35,6 +35,10 @@ import ( | |||
|
|||
func main() { | |||
arguments := args.Default() | |||
|
|||
// Override defaults. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jennybuckley was this only for testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this was to make the tests pass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we fix the tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imo, the tests are good how they are because they test if the behavior of the example generators have changed based on the changes to the generic gengo code. I could have run the generators and committed the changes to the generated code, instead of modifying the example generators, but that wouldn't show that the old behavior of the example generators can be implemented by setting the new generator argument, and the output will be exactly how it was before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, please remove the overrides and update the test output in another commit.
711080e
to
9a20df7
Compare
#91 merged |
9a20df7
to
debc696
Compare
args/args.go
Outdated
@@ -64,6 +65,11 @@ type GeneratorArgs struct { | |||
// Where to get copyright header text. | |||
GoHeaderFilePath string | |||
|
|||
// If GeneratedByCommentTemplate is set, generate a "Code generated by" comment | |||
// above the package declaration of the format defined by this string. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
below the boilerplate
args/args.go
Outdated
|
||
if g.GeneratedByCommentTemplate != "" { | ||
generatorPath := strings.Split(os.Args[0], "/") | ||
generatorName := generatorPath[len(generatorPath)-1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
examples/deepcopy-gen/main.go
Outdated
@@ -69,6 +69,7 @@ func main() { | |||
|
|||
// Override defaults. | |||
arguments.OutputFileBaseName = "deepcopy_generated" | |||
arguments.GeneratedByCommentTemplate = "\n// This file was autogenerated by deepcopy-gen. Do not edit it manually!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this set explicitly. We should use the default.
examples/defaulter-gen/main.go
Outdated
@@ -54,6 +54,7 @@ func main() { | |||
|
|||
// Override defaults. | |||
arguments.OutputFileBaseName = "defaulter_generated" | |||
arguments.GeneratedByCommentTemplate = "\n// This file was autogenerated by defaulter-gen. Do not edit it manually!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should use the default.
dd8bd57
to
3a11997
Compare
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. code-gen: output golint compliant 'Generated by' comment New PR instead of reopening #58115 because /reopen did not work. This won't be ready to merge until the upstream kubernetes/gengo#94 merges. Once that merges, the second commit will be changed to godep-save.sh and update-staging-godeps.sh, and the last commit will be changed to update-all.sh The failing test is due to the upstream changes not being merged yet ```devel-release-note Go code generated by the code generators will now have a comment which allows them to be easily identified by golint ``` Fixes #56489 Kubernetes-commit: 1eb1c00c44f8f597b9b23a05cd0a8da205c87f8a
Upstreaming kubernetes/kubernetes#58115
The format of the comment is:
It will be located directly above the package declaration.