mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #18918 from smarterclayton/conversion_import
Auto commit by PR queue bot
This commit is contained in:
commit
390e91793f
@ -235,6 +235,8 @@ func (g *conversionGenerator) generateConversionsForMap(inType, outType reflect.
|
||||
func (g *conversionGenerator) generateConversionsForSlice(inType, outType reflect.Type) error {
|
||||
inElem := inType.Elem()
|
||||
outElem := outType.Elem()
|
||||
// slice conversion requires the package for the destination type in order to instantiate the map
|
||||
g.addImportByPath(outElem.PkgPath())
|
||||
if err := g.generateConversionsBetween(inElem, outElem); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user