Skip to content

chore: Fix Deepcopy issue for Component struct#1266

Merged
jakobmoellerdev merged 12 commits into
open-component-model:mainfrom
morri-son:issue-762/enable-deepcopy
Dec 3, 2025
Merged

chore: Fix Deepcopy issue for Component struct#1266
jakobmoellerdev merged 12 commits into
open-component-model:mainfrom
morri-son:issue-762/enable-deepcopy

Conversation

@morri-son

Copy link
Copy Markdown
Contributor

On-behalf-of: Gerald Morrison (SAP) gerald.morrison@sap.com

What this PR does / why we need it

Fix Deepcopy issue for Component struct

@morri-son morri-son added the kind/chore chore, maintenance, etc. label Nov 26, 2025
@morri-son morri-son requested a review from a team as a code owner November 26, 2025 14:43
@github-actions github-actions Bot added the size/m Medium label Nov 26, 2025
Comment thread bindings/go/descriptor/v2/descriptor.go Outdated
@morri-son morri-son force-pushed the issue-762/enable-deepcopy branch from fac50f9 to af1f5a5 Compare November 28, 2025 11:54
@github-actions github-actions Bot added the size/s Small label Nov 28, 2025
@morri-son morri-son closed this Nov 28, 2025
@morri-son morri-son force-pushed the issue-762/enable-deepcopy branch from ea21acb to c2e8290 Compare November 28, 2025 12:08
@github-actions github-actions Bot added the size/xs Extra small label Nov 28, 2025
@morri-son morri-son reopened this Nov 28, 2025
@morri-son morri-son closed this Nov 28, 2025
@morri-son morri-son force-pushed the issue-762/enable-deepcopy branch from ecfe3f8 to c2e8290 Compare November 28, 2025 13:37
…ests for both

On-behalf-of: Gerald Morrison (SAP) <gerald.morrison@sap.com>
Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
@morri-son morri-son reopened this Nov 28, 2025
On-behalf-of: Gerald Morrison (SAP) <gerald.morrison@sap.com>
Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
matthiasbruns
matthiasbruns previously approved these changes Nov 28, 2025
Comment thread bindings/go/descriptor/v2/descriptor_test.go Outdated
morrison-sap and others added 3 commits November 28, 2025 18:15
On-behalf-of: Gerald Morrison (SAP) <gerald.morrison@sap.com>
Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
…-component-model into issue-762/enable-deepcopy

On-behalf-of: Gerald Morrison (SAP) <gerald.morrison@sap.com>
Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
matthiasbruns
matthiasbruns previously approved these changes Dec 2, 2025
@Skarlso

Skarlso commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

This looks like it's working Gerald? What was all the fuss about? :D

Skarlso
Skarlso previously approved these changes Dec 2, 2025
Comment thread bindings/go/descriptor/v2/descriptor_test.go
…epcopy

On-behalf-of: Gerald Morrison (SAP) <gerald.morrison@sap.com>
Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
@morri-son

morri-son commented Dec 3, 2025

Copy link
Copy Markdown
Contributor Author

This looks like it's working Gerald? What was all the fuss about? :D

I really don't have an explanation why it didn't work when we set the annotation for the first time. Fabian tried it and had no success and so did I. This is why the issue was created at first place. After seeing it does not work, I started to come up with options. Then before implementing the option we decided on, I just tried out setting the annotations again and then it worked. And no, the version of deepcopy-gen did not change between the trials. X-mas magic 😉

On-behalf-of: Gerald Morrison (SAP) <gerald.morrison@sap.com>
Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
…-component-model into issue-762/enable-deepcopy

On-behalf-of: Gerald Morrison (SAP) <gerald.morrison@sap.com>
Signed-off-by: Gerald Morrison (SAP) <gerald.morrison@sap.com>
@morri-son morri-son dismissed stale reviews from Skarlso and matthiasbruns via 82bb427 December 3, 2025 09:28
@jakobmoellerdev jakobmoellerdev merged commit 24b8f80 into open-component-model:main Dec 3, 2025
17 checks passed
@morri-son morri-son deleted the issue-762/enable-deepcopy branch January 27, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/chore chore, maintenance, etc. size/m Medium size/s Small size/xs Extra small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make runtime.descriptor and v2.descriptor DeepCopyable

7 participants