salesforce / craft

CRAFT removes the language barrier to create Kubernetes Operators.
BSD 3-Clause "New" or "Revised" License
93 stars 15 forks source link

craft create command fails due to missing "schema-generate" executable #4

Closed supra08 closed 4 years ago

supra08 commented 4 years ago

When I try running the command:

craft create -c config/controller.json -r config/resource.json --podDockerFile resource/Dockerfile -p

It fails with exit status 1. The last few logs of the error are given below:

INFO[0006] Writing scaffold for you to edit...
INFO[0006] api/v1/wordpressapi_types.go
INFO[0006] controllers/wordpressapi_controller.go
INFO[0006] Running make:
INFO[0006] $ make
INFO[0006] /Users/supradeux/go/bin/controller-gen object:headerFile=\"hack/boilerplate.go.txt\" paths=\"./...\
INFO[0007] go fmt ./...
INFO[0007] go vet ./...
INFO[0008] go build -o bin/manager main.go
INFO[0011] exec: \"schema-generate\": executable file not found in $PATH
FATA[0011] exit status 1

Are there some more requirements that needs to be installed manually?

anjidevarasetty commented 4 years ago

Hi @supra08

can you please try to run $go get -u github.com/a-h/generate/... or run install.sh script