Open cooldog21 opened 4 years ago
1、偷机的方法:把api.proto软链到其他目录,并加入到 proto_path...
2、README.md文件中的protoc --proto_path=${GOPATH}/src:. --go_out=. --micro_out=Mgithub.com/micro/go-micro/api/proto/api.proto=github.com/micro/go-micro/v2/api/proto:. api/api.proto
api/api.proto需要改为 proto/api.proto
protoc --proto_path=${GOPATH}/src:. --go_out=. --micro_out=. proto/api.proto (master)
github.com/micro/go-micro/v2/api/proto/api.proto: File not found. proto/api.proto:3:1: Import "github.com/micro/go-micro/v2/api/proto/api.proto" was not found or had errors.