-
-
Notifications
You must be signed in to change notification settings - Fork 274
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
panic: reflect: reflect.Value.Set using unaddressable value merging nested structures #90
panic: reflect: reflect.Value.Set using unaddressable value merging nested structures #90
Comments
If I use |
This also panics:
|
I think from my debugging that this is the reason why this is happening: https://stackoverflow.com/a/49147910/2213164 |
I had something similar. The following code in mergo was causing a panic:
I fixed it by initialising a map in |
It should be fixed now. |
Reopening this issue as its PR introduced too many bugs. |
see darccio#90 Signed-off-by: Nicolas De Loof <[email protected]>
see darccio#90 Signed-off-by: Nicolas De Loof <[email protected]>
see darccio#90 Signed-off-by: Nicolas De Loof <[email protected]>
see darccio#90 Signed-off-by: Nicolas De Loof <[email protected]>
see darccio#90 Signed-off-by: Nicolas De Loof <[email protected]>
full diff: imdario/[email protected] includes: - darccio/mergo@c085d66 use src map if dst is nil and can't be set - fixes darccio/mergo#90 panic: reflect: reflect.Value.Set using unaddressable value merging nested structures Signed-off-by: Jonathan Warriss-Simmons <[email protected]> Upstream-commit: 221bf5761fa56ed88cb6ee0b5081b4885326e41e Component: cli
Hi,
I want to do a deep merge where non-empty dst attributes are overwritten with non-empty src attributes values but slices are appended, is this possible?
Can someone help me understand why this does't work?
I get:
So, the first merge works but the second one fails.
Thanks
The text was updated successfully, but these errors were encountered: