ga4gh / task-execution-schemas

Apache License 2.0
80 stars 28 forks source link

Instructions for using .proto #93

Closed psafont closed 6 years ago

psafont commented 6 years ago

I've tried generating swagger from the proto file, but the instructions are missing.

What I've done

After that, I get the following error:

$ make
protoc -I ./ -I /home/psafont/dev/ga4gh/task-execution-schemas/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis/  \
        --swagger_out=logtostderr=true:. \
        task_execution.proto
protoc-gen-swagger: program not found or is not executable
--swagger_out: protoc-gen-swagger: Plugin failed with status code 1.
make: *** [Makefile:13: swagger] Error 1

The progra is in pwd, so there's something I'm obviously missing as a go neophyte, any directions?

buchanae commented 6 years ago

Possibly you need to add export PATH=$PATH:$GOPATH/bin ? In other words, add Go's bin directory to your path?

psafont commented 6 years ago

I'll try, thanks!

psafont commented 6 years ago

Yeah, just did make install-tools and make. Should have read the Makefile more carefully.