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