I am trying out go-micro and I have issues genearating .micro
boilerplate code. I have set my env and even passed the direct directory of my GOPATH
but got error
/Users/Olar/home/golib/bin/protoc-gen-micro: program not found or is not executable Please specify a program using absolute path or make sure the program is available in your PATH system variable --micro_out: protoc-gen-micro: Plugin failed with status code 1.
the command I run
protoc --plugin=protoc-gen-go=/Users/Olar/home/golib/bin/protoc-gen-go --plugin=protoc-gen-micro=/Users/Olar/home/golib/bin/protoc-gen-micro --proto_path=/Users/Olar/home/golib/src:. --go_out=. --micro_out=. greeter.proto
on removal of --micro_out=.
, greeter.pb.go
file is generated but the .micro
is not generated. How can I fix this
You must have protoc
and the plugin (protoc-gen-micro
) installed.
I think you omitted the second step.
See:
https://github.com/micro/protoc-gen-micro
And perhaps:
go get github.com/micro/protoc-gen-micro
And then:
which protoc-gen-micro