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

🐛 ? Il faut un retour chariot à la fin de la ligne 5 dans gen.go #2

Open
philippart-s opened this issue Sep 13, 2021 · 0 comments

Comments

@philippart-s
Copy link

Peut être est-ce dû à mon environnement (WSL2 sur Win10) mais si il n'y a pas de retour chariot à la fin de la ligne 5 dans gen.go :

//go:generate swagger generate server --quiet --target server --name hello-api --spec swagger.yml --exclude-main

Cela provoque une erreur :

❯ task swagger.gen
task: [swagger.gen] GOFLAGS=-mod=mod go generate github.com/philippart-s/learning-go-by-examples/go-rest-api/internal github.com/philippart-s/learning-go-by-examples/go-rest-api/pkg/swagger
pkg/swagger/gen.go:5: error reading pkg/swagger/gen.go: unexpected EOF
task: Failed to run task "swagger.gen": exit status 1

Mais bon pas sûr que ce soit vraiment un bug mais au cas où 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant