-
Notifications
You must be signed in to change notification settings - Fork 196
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
Deep copy gen generates invalid code if struct has an _
field
#133
Comments
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
There is an open PR #134 to fix this and it would be great if someone could help get that merged and applied. |
That PR is waiting on a test. I clarified where one could be added.
…On Sun, Apr 21, 2019 at 1:51 PM Chris Holman ***@***.***> wrote:
There is an open PR #134 <#134>
to fix this and it would be great if someone could help get that merged and
applied.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#133 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAE6BFRTEORKI4YL4SQQ6RLPRTHUBANCNFSM4GQ3Z7GQ>
.
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen
/lifecycle frozen
…On Thu, Sep 19, 2019 at 10:55 AM Kubernetes Prow Robot < ***@***.***> wrote:
@fejta-bot <https://github.com/fejta-bot>: Closing this issue.
In response to this
<#133 (comment)>:
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta
<https://github.com/fejta>.
/close
Instructions for interacting with me using PR comments are available here
<https://git.k8s.io/community/contributors/guide/pull-requests.md>. If
you have questions or suggestions related to my behavior, please file an
issue against the kubernetes/test-infra
<https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:>
repository.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#133?email_source=notifications&email_token=AAE6BFSTS44OCXJ56C34I3LQKO4JHA5CNFSM4GQ3Z7G2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7EJYKY#issuecomment-533240875>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAE6BFWX3W3QOQ3G7E4ZLILQKO4JHANCNFSM4GQ3Z7GQ>
.
|
@lavalamp: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
gengo/v2 (#259) moves deepcopy-gen to k8s.io/code-generator. |
Running deepcopy-gen against structs that have
_
fields in them generates invalid go code.Source struct:
doc.go
directives to deepcopy:deepcopy directives above structs that the above struct is a child of (not sure if this makes a difference or not - this is autogenerated code from the operator sdk)
Output by deepcopy-gen:
Setting or accessing
_
fields is invalid.I applied the following patch locally and it outputs correct code (ie does not attempt to copy the
_
field). No idea if this is the correct way to solve the problem though.After applying this patch, output is as expected:
The text was updated successfully, but these errors were encountered: