You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I encountered a problem while using protoc-gen-validate.
When I execute the command protoc --go_out=. -I . hello_world.proto --validate_out="lang=go:."
it throws an error hello_world.proto:10:20: Option "(validate.rules)" unknown. Ensure that your proto definition file imports the proto which defines the option.
Directory Structure:
Copy code
├── proto
│ ├── hello_world.proto
│ └── validate.proto
Description:
I encountered a problem while using protoc-gen-validate.
When I execute the command
protoc --go_out=. -I . hello_world.proto --validate_out="lang=go:."
it throws an error
hello_world.proto:10:20: Option "(validate.rules)" unknown. Ensure that your proto definition file imports the proto which defines the option.
Directory Structure:
Details:
The
validate.proto
file is copied from protoc-gen-validate.The
hello_world.proto
file is written by myself, with the following content:I have also successfully installed protoc-gen-validate in the
$GOPATH/bin
directory following the installation instructions.The text was updated successfully, but these errors were encountered: