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

[go1.20] tool doesn't recurse into sub-directories

Open dprotaso opened this issue 2 years ago • 2 comments

Unsure why but with go1.20 the tool doesn't recurse into sub-directories anymore.

Script is invoked the following way https://github.com/knative/eventing/blob/main/hack/update-reference-docs.sh

Output is

I0227 10:51:28.226464   96710 main.go:132] parsing go packages in directory knative.dev/eventing/pkg/apis
F0227 10:51:28.242770   96710 main.go:135] no loaded build package for knative.dev/eventing/pkg/apis
exit status 255

dprotaso avatar Feb 27 '23 15:02 dprotaso

gengo - issue - https://github.com/kubernetes/gengo/issues/241

dprotaso avatar Mar 08 '23 17:03 dprotaso

Workaround is to place an empty go file into the empty directory so that there is always code

dprotaso avatar Mar 08 '23 17:03 dprotaso