Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenHUE-CLI make generate error : oapi-gencode missing #47

Open
jmma59 opened this issue Mar 11, 2024 · 1 comment
Open

OpenHUE-CLI make generate error : oapi-gencode missing #47

jmma59 opened this issue Mar 11, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@jmma59
Copy link

jmma59 commented Mar 11, 2024

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

@thibauult
Copy link
Contributor

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 thibauult added the documentation Improvements or additions to documentation label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants