Commit e443da3
committed
pkg/crd: fix alias conversion to schema with gotypesalias=1
This patch will be needed when upgrading to Go 1.23 as type alias now
generate a proper type (instead of directly being the basic type they
alias to), see https://pkg.go.dev/go/types#Alias for more info.
This just reproduces the old behavior by retrieving the underlying type
from the alias. If needed, we could treat alias more gracefully to make
the type ref link now that we have all the type information.
Signed-off-by: Mahe Tardy <[email protected]>1 parent 7587d2c commit e443da3
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
245 | 250 | | |
246 | 251 | | |
247 | 252 | | |
248 | 253 | | |
249 | 254 | | |
250 | | - | |
251 | | - | |
252 | | - | |
| 255 | + | |
| 256 | + | |
253 | 257 | | |
254 | 258 | | |
255 | 259 | | |
| |||
0 commit comments