make api 报错
情况1:#protoc-gen-gogofaster插件缺失
protoc --proto_path=. \
--proto_path=./third_party \
--proto_path=./api \
--gogofaster_out="plugins=grpc,paths=source_relative:." \
--grpc-gateway_out="paths=source_relative:." \
api/v1/article.proto api/v1/attachment.proto api/v1/banner.proto api/v1/category.proto api/v1/comment.proto api/v1/config.proto api/v1/document.proto api/v1/download.proto api/v1/favorite.proto api/v1/friendlink.proto api/v1/group.proto api/v1/health.proto api/v1/navigation.proto api/v1/permission.proto api/v1/report.proto api/v1/user.proto
protoc-gen-gogofaster: 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
--gogofaster_out: protoc-gen-gogofaster: Plugin failed with status code 1.
make: *** [api] 错误 1
处理方法:go get github.com/gogo/protobuf/protoc-gen-gogofaster
go install github.com/gogo/protobuf/protoc-gen-gogofaster
情况2: protoc-gen-grpc-gateway缺失
protoc --proto_path=. \
--proto_path=./third_party \
--proto_path=./api \
--gogofaster_out="plugins=grpc,paths=source_relative:." \
--grpc-gateway_out="paths=source_relative:." \
api/v1/article.proto api/v1/attachment.proto api/v1/banner.proto api/v1/category.proto api/v1/comment.proto api/v1/config.proto api/v1/document.proto api/v1/download.proto api/v1/favorite.proto api/v1/friendlink.proto api/v1/group.proto api/v1/health.proto api/v1/navigation.proto api/v1/permission.proto api/v1/report.proto api/v1/user.proto
protoc-gen-grpc-gateway: 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
--grpc-gateway_out: protoc-gen-grpc-gateway: Plugin failed with status code 1.
make: *** [api] 错误 1