ahmetb / gen-crd-api-reference-docs

API Reference Docs generator for Kubernetes CRDs (used by Knative, Kubeflow and others)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

dprotaso opened this issue · 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

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