• k8s-merge-robot's avatar
    Merge pull request #28430 from smarterclayton/fix_empty_deep_copy · de0e6de8
    k8s-merge-robot authored
    Automatic merge from submit-queue
    
    WIP - Handle map[]struct{} in DeepCopy
    
    Deep copy was not properly handling the empty struct case we use for Sets.
    
    @lavalamp I need your expertise when you have some time - the go2idl parser is turning sets.String into the following tree:
    
        type:         sets.String           kind: Alias
          underlying: map[string]sets.Empty kind: Map
            key:      string                kind: Builtin
            elem:     set.Empty             kind: Struct
                                                  ^
                                                  should be Alias
    
    Looking at tc.Named, I'm not sure what the expected outcome would be and why you flatten there.
    de0e6de8
Name
Last commit
Last update
..
args Loading commit data...
client-gen Loading commit data...
conversion-gen Loading commit data...
deepcopy-gen Loading commit data...
generator Loading commit data...
go-to-protobuf Loading commit data...
import-boss Loading commit data...
namer Loading commit data...
parser Loading commit data...
set-gen Loading commit data...
types Loading commit data...
.import-restrictions Loading commit data...
OWNERS Loading commit data...