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" 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/35ae493c-b935-40f2-8e48-8326726dcc0fn%40googlegroups.com.

Reply via email to