Closed nomad-software closed 12 months ago
Thanks for the detailed report, @nomad-software! I am unable to reproduce this bug following your steps using the latest version of this module and protos.
Could you verify for me that the version of the protovalidate protos you are depending on are current (buf mod update
) and for good measure bump the version of the remote package in your go.mod (go get -u buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go
)?
Hi @rodaine I've updated everything you suggested and I also had to regenerate the message's proto-buffers too. It's all passing now. Scary that it all just silently failed validation, good job I had the test!
Thanks for your help.
Description
Calling the validate method on a proto message used to work but since v0.3.3 it fails.
Steps to Reproduce
I have a simple message test written like this:
and a unit test like this:
Expected Behavior
To pass. This worked fine with v0.3.2, I expect it to keep working in later releases.
Actual Behavior
Output
Screenshots/Logs
buf.gen.yaml
Environment
Possible Solution
n/a
Additional Context
n/a