protoc-gen-validate icon indicating copy to clipboard operation
protoc-gen-validate copied to clipboard

generator is deprecated? how can i upgrade this package?

Open benson-lin opened this issue 5 years ago • 9 comments

protoc I . --validate_out=lang=go,paths=source_relative:./ --go_out=plugins=grpc,paths=source_relative:./ ./validate.proto WARNING: Package "github.com/golang/protobuf/protoc-gen-go/generator" is deprecated. A future release of golang/protobuf will delete this package, which has long been excluded from the compatibility promise.

benson-lin avatar Jul 24 '20 02:07 benson-lin

Same here ...

eccles avatar Jul 30 '20 12:07 eccles

use as-is and wait when the code is fixed

vtolstov avatar Jul 30 '20 12:07 vtolstov

Looks like the cause of this problem is github.com/golang/protobuf package is deprecated ( ref: pkg.go.dev ). Anyone working on this issue?

khanhtc1202 avatar Aug 23 '20 18:08 khanhtc1202

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 04 '20 02:10 stale[bot]

will it work with google.golang.org/protobuf/cmd/protoc-gen-go?

vtopc avatar Oct 07 '20 11:10 vtopc

Maybe? I'm happy to review a PR if you can get it working.

akonradi avatar Oct 07 '20 15:10 akonradi

https://github.com/golang/protobuf/issues/1104#issuecomment-619420855

The solution seems to be to use protogen, but it's not totally clear to me if the change is breaking or not.

mechwire avatar Nov 23 '20 08:11 mechwire

Running into this issue as well. It's becoming a problem to have two conflicting versions of protobuf

jextrevor avatar Jan 06 '21 23:01 jextrevor

I am no longer getting the warning after upgrading from 0.2.0-java to master, so I believe references to the generator have been removed and this issue can be closed. On the other hand, I think it would be nice to remove references to the github.com/golang/protobuf library and fully switch over to google.golang.org/protobuf, but that's for another issue.

F21 avatar Mar 02 '21 07:03 F21