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

Merged
merged 1 commit into from
Aug 17, 2024
Merged

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

merged 1 commit into from
Aug 17, 2024

Conversation

joshkaplinsky
Copy link
Contributor

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
@darccio
Copy link
Owner

darccio commented Aug 17, 2024

CI & tests look good. Let's hope it doesn't cause any side effect.

@darccio darccio merged commit 59ea6a9 into darccio:master Aug 17, 2024
1 check passed
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.

2 participants