Did you ever figure this out? I am hitting the same issue, and it's quite 
frustrating :(

On Monday, July 25, 2022 at 2:08:18 AM UTC-7 santhoshth...@gmail.com wrote:

> Hi Everyone
>
> I am importing the proto of other project into my proto file and run 
> protoc command. 
> I got this below error :
>
> *Go package "github.com/gogo/protobuf/types 
> <http://github.com/gogo/protobuf/types>" has inconsistent names structpb 
> (google/protobuf/struct.proto) and timestamppb 
> (google/protobuf/timestamp.proto)*
>
> *protoc command:*
> User/project/web/tools/protoc-3.17.3/bin/protoc 
> --proto_path=User/project:. 
> -I=User/project/web/rpc/protomgr 
> -I=User/project/web/protobuf-import 
> --plugin=protoc-gen-twirp=User/project/bin/protoc-gen-twirp 
> --plugin=protoc-gen-go=User/project/bin/protoc-gen-go 
> --plugin=protoc-gen-go-grpc=User/project/bin/protoc-gen-go-grpc 
> --twirp_out=. 
> go_out=Mgoogle/protobuf/any.proto=
> github.com/gogo/protobuf/types,Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types:.
>  
> proto_file.proto
>
>
> The both proto files has the import of 
>
> *import "google/protobuf/timestamp.proto";import 
> "google/protobuf/struct.proto";*
>
>
> I can't figure out what is happening here. Can somebody provide some 
> suggestions? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/042d8e88-d0e8-48ef-b894-22bf8cc5f058n%40googlegroups.com.

Reply via email to