Skip to content
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

fix: WithoutDereference should respect non-nil struct pointers #251

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joshkaplinsky
Copy link

This PR is a followup to #131 & #227.

The changes in this PR address the scenario where a non-nil struct pointer with WithoutDereference set will override the entire dst. This is unexpected, as a struct does not have a zero value; a non-nil struct should be traversed to determine merge behavior properly.

@joshkaplinsky joshkaplinsky changed the title fix: WithoutDereference should respect structs fix: WithoutDereference should respect non-nil struct pointers Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant