Skip to content

Commit 184ff00

Browse files
Fix mergo configs (#663)
I think the slice deep copy behavior has some goofy side-effects
1 parent 41857f3 commit 184ff00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/pr/updates.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func mergeYaml(base, overlay []byte, merge ListMerge) ([]byte, error) {
144144
return nil, err
145145
}
146146

147-
options := []func(*mergo.Config){mergo.WithOverride, mergo.WithSliceDeepCopy}
147+
options := []func(*mergo.Config){mergo.WithOverride}
148148
if strings.ToUpper(string(merge)) == ListMergeAppend {
149149
options = append(options, mergo.WithAppendSlice)
150150
}

0 commit comments

Comments
 (0)