Closed yeqown closed 2 years ago
As supplementary, third-party
is a copy of validate/validate.proto
and other google/protobuf/xxx.proto
I had the same issues with go1.17, to fix the issue I had to downgrade go to 1.16
@medgar-nitric Thanks for your reply, I wonder you mean it works correctly with 1.16? And have you found the root cause of this issue?
Sorry, yes that is what i meant with Go version 1.16 the ValidateAll() functions are generated correctly, but are not present when using Go version 1.17. I dont know what the root cause is for this.
This is fixed now with Go version 1.17.1 Not sure why.
This looks to not be working in Go 1.19.2
Envrioment
lang: go1.17 protoc-gen-validate: 0.6.1 protoc: 3.17.0 proto-gen-go: 1.3.2
Question
I generated
xxx.pb.validate.to
but there's noValidateAll
method in it. compile command is:here is protobuffer file: https://github.com/yeqown/cassem/blob/main/internal/cassemdb/api/api.proto. Is there any tip I missed?