0

当我运行 kubebuilder create api xxxx 命令时,sh 出现以下错误。谁能告诉我如何解决它?

go get: added sigs.k8s.io/yaml v1.1.0
/usr/local/gopro/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..."
main.go:30:2: package demo/controllers imports github.com/go-logr/logr from implicitly 
required module; to add missing requirements, run:
go get github.com/go-logr/logr@v0.1.0
Error: not all generators ran successfully
run `controller-gen object:headerFile=hack/boilerplate.go.txt paths=./... -w` to see all 
available markers, or `controller-gen object:headerFile=hack/boilerplate.go.txt paths=./... - 
h` for usage
Makefile:55: recipe for target 'generate' failed
make: *** [generate] Error 1
4

0 回答 0