Original post

Hello.

I have a gRPC project.

I put all my proto files in

github.com/myName/myProject/api folder

And I put my backend code in

github.com/myName/myProject/backend folder

As you can see, my backend code imports generted proto messages from the “api” folder.

I used modules and vendored my dependencies into vendor folder (but my github.com/myName/myProject/api dependencies is not included in the vendor folder)

That’s why when I try to build my go project with vendor mode (using -mod=vendor) flag, it throws error saying it can not find the api proto dependencies “github.com/myName/myProject/api

I don’t know what to do

submitted by /u/CrappyFap69
[link] [comments]