-
-
Notifications
You must be signed in to change notification settings - Fork 279
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
bool issue #249
Comments
Stuck with the same issue. Fixed with mergo.WithoutDereference and pointer to bool in structure |
You can try using mergo.WithOverwriteWithEmptyValue instead of mergo.WithOverride. |
Kidswiss
added a commit
to vshn/appcat
that referenced
this issue
Mar 5, 2024
By default mergo doesn't allow merging a non empty value with an empty value. For example if a field is a string "hello" it would not override it, if the to be merged object contains the same field with "". This works well until someone wants to override a true boolean with a false boolean, in which case the merge doesn't happen. By setting `mergo.WithOverwriteWithEmptyValue`, we can force mergo to merge empty values into noni empty values. darccio/mergo#249
For anyone having encountering this bug from helm (or sprig), you can use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
got
expected
got
expected
As you can see overriding
true with false
fails, however overridingfalse with true
worksUpvote & Fund
The text was updated successfully, but these errors were encountered: