openhue-cli
openhue-cli copied to clipboard
OpenHUE-CLI make generate error : oapi-gencode missing
Hi, I am trying to discover your openhue-CLI tools. I have folowed discribed procedure to deploy localy.
During install I have mistake :
Requirement : OK
- Golang (V1.22.1)
- Goreleaser
- Docker (25.0.3)
Download openhue-cli OK
- git clone OK
- cd
- make build OK
- make test OK
- make coverage OK
- make generate NOK error message
make generate
Code generation from https://api.redocly.com/registry/bundle/openhue/openhue/v2/openapi.yaml?branch=main
/bin/sh: 1: oapi-codegen: not found
make: *** [Makefile:24 : generate] Erreur 127
Could you help me please ? Have a nice day
Hi @jmma59,
Thanks for opening this issue!
The make generate command requires to install oapi-codegen tool. Can you please try to install it using:
go install github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@latest
and then try again to the make generate command?
If it works I will update the project README accordingly.
Fixed by https://github.com/openhue/openhue-cli/pull/58