gen-crd-api-reference-docs icon indicating copy to clipboard operation
gen-crd-api-reference-docs copied to clipboard

fix: update `k8s.io/gengo/v2` version to fix unsupported type warning

Open dongjiang1989 opened this issue 10 months ago • 1 comments

When I used the gen-crd-api-reference-docs tool, I found a warning and found that it had been fixed in gengo, and verified that the warning no longer appeared.

ref: https://tip.golang.org/doc/go1.23#gotypespkggotypes

some warning:

W1015 16:21:58.244775   18153 parse.go:769] Making unsupported type entry "any" for: &types.Alias{obj:(*types.TypeName)(0x140001beb90), orig:(*types.Alias)(0x140001900c0), tparams:(*types.TypeParamList)(nil), targs:(*types.TypeList)(nil), fromRHS:(*types.Interface)(0x140001beaf0), actual:(*types.Interface)(0x140001beaf0)}
W1015 16:21:58.245160   18153 parse.go:769] Making unsupported type entry "reflect.uncommonType" for: &types.Alias{obj:(*types.TypeName)(0x14009946cd0), orig:(*types.Alias)(0x14004608780), tparams:(*types.TypeParamList)(nil), targs:(*types.TypeList)(nil), fromRHS:(*types.Named)(0x1400088ea80), actual:(*types.Named)(0x1400088ea80)}

Fixed in k8s.io/gengo/v2: https://github.com/kubernetes/gengo/pull/274

dongjiang1989 avatar Jan 22 '25 10:01 dongjiang1989

cc @ahmetb PTAL

dongjiang1989 avatar Jan 22 '25 10:01 dongjiang1989