openhue-cli icon indicating copy to clipboard operation
openhue-cli copied to clipboard

OpenHUE-CLI make generate error : oapi-gencode missing

Open jmma59 opened this issue 1 year ago • 1 comments

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

jmma59 avatar Mar 11 '24 15:03 jmma59

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.

thibauult avatar Mar 20 '24 11:03 thibauult

Fixed by https://github.com/openhue/openhue-cli/pull/58

thibauult avatar Jun 19 '24 08:06 thibauult