Reputation: 41
I am building a go binary and it is using go module through vendor to manage the dependencies. But each time I am building the binary an error like "proto.IsVersion3" is presented.
Now I think this may be because the dependency under vendor doesn't have its own vendor again, that is to say, sub-package. But how can I overcome this issue?
The whole process is like `go mod init && go mod tidy && go mod vendor && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=off go (1.12) build ....'
Upvotes: 0
Views: 2002
Reputation: 41
With feedback from above answers, I solved this problem by just replacing the protobuf version to a newer one, it seems the protobuf v1.1.0 isn't implemented ProtoPackageIsVersion3
Upvotes: 0