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

How to run makefile for this repo? #491

Closed
rhzs opened this issue Dec 1, 2017 · 1 comment
Closed

How to run makefile for this repo? #491

rhzs opened this issue Dec 1, 2017 · 1 comment

Comments

@rhzs
Copy link

rhzs commented Dec 1, 2017

Following up my previous issue on #490.

How can I run makefile for this repo?

It seems that a lot of deps & tools being needed and not written in README.md.

➜ protoc --version
libprotoc 3.4.0
➜ make
make: Nothing to be done for `generate'.
➜ make test
protoc -I /usr/local/bin//../include -I. -Ithird_party/googleapis --plugin=bin/protoc-gen-swagger --swagger_out=logtostderr=true,Mgoogle/protobuf/descriptor.proto=github.com/golang/protobuf/protoc-gen-go/descriptor,Mexamples/sub/message.proto=github.com/grpc-ecosystem/grpc-gateway/examples/sub:. examples/examplepb/echo_service.proto examples/examplepb/a_bit_of_everything.proto
protoc -I /usr/local/bin//../include -I. -Ithird_party/googleapis --plugin=bin/protoc-gen-swagger --swagger_out=logtostderr=true,Mgoogle/protobuf/descriptor.proto=github.com/golang/protobuf/protoc-gen-go/descriptor,Mexamples/sub/message.proto=github.com/grpc-ecosystem/grpc-gateway/examples/sub:. examples/examplepb/echo_service.proto examples/examplepb/a_bit_of_everything.proto
swagger-codegen generate -i examples/examplepb/echo_service.swagger.json \
	    -l go -o examples/clients/echo --additional-properties packageName=echo
make: swagger-codegen: No such file or directory
make: *** [examples/clients/echo/EchoServiceApi.go] Error 1

Sorry I am noob to this. :( Need ur guidance.

Thank you

@achew22
Copy link
Collaborator

achew22 commented Dec 9, 2017

You will need to install swagger-codegen. Our trais config should walk you through it

https://github.com/grpc-ecosystem/grpc-gateway/blob/master/.travis.yml

@achew22 achew22 closed this as completed Dec 9, 2017
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

2 participants