protoc-gen-validate
protoc-gen-validate copied to clipboard
generator is deprecated? how can i upgrade this package?
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.
Same here ...
use as-is and wait when the code is fixed
Looks like the cause of this problem is github.com/golang/protobuf package is deprecated ( ref: pkg.go.dev ). Anyone working on this issue?
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.
will it work with google.golang.org/protobuf/cmd/protoc-gen-go?
Maybe? I'm happy to review a PR if you can get it working.
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.
Running into this issue as well. It's becoming a problem to have two conflicting versions of protobuf
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.