ahmetb / gen-crd-api-reference-docs

API Reference Docs generator for Kubernetes CRDs (used by Knative, Kubeflow and others)
Apache License 2.0
307 stars 99 forks source link

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

Open dprotaso opened 1 year ago

dprotaso commented 1 year ago

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 commented 1 year ago

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

dprotaso commented 1 year ago

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