golang / protobuf

Go support for Google's protocol buffers
BSD 3-Clause "New" or "Revised" License
9.66k stars 1.58k forks source link

how to Introduce other proto files? #1481

Closed guowei-gong closed 1 year ago

guowei-gong commented 1 year ago

My question: The dependency could not be found in the generated file.

enter image description here

This is my project structure: enter image description here

auth.proto: enter image description here

ws.proto: enter image description here

I executed this command at the root of the project $ protoc --proto_path=. --go_out=. ./api/auth/service/v1/auth.proto

Thank you for your help!

guowei-gong commented 1 year ago

https://stackoverflow.com/questions/73636235/how-to-introduce-other-proto-files/73658266?noredirect=1#comment130074990_73658266