Skip to content

Commit

Permalink
Add missing validate dep, closes #149
Browse files Browse the repository at this point in the history
  • Loading branch information
aaliddell committed Nov 28, 2021
1 parent d17f4db commit 6860060
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion go/go_validate_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ def go_validate_library(name, **kwargs):
tags = kwargs.get("tags"),
)

VALIDATE_DEPS = [] + GRPC_DEPS
VALIDATE_DEPS = [
"@com_github_envoyproxy_protoc_gen_validate//validate:go_default_library",
] + GRPC_DEPS
4 changes: 3 additions & 1 deletion tools/rulegen/go.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ var goValidateLibraryRuleTemplate = mustTemplate(`load("//{{ .Lang.Dir }}:{{ .Ru
tags = kwargs.get("tags"),
)
VALIDATE_DEPS = [] + GRPC_DEPS`)
VALIDATE_DEPS = [
"@com_github_envoyproxy_protoc_gen_validate//validate:go_default_library",
] + GRPC_DEPS`)

// For go, produce one library for all protos, since they are all in the same package
var goProtoLibraryExampleTemplate = mustTemplate(`load("@rules_proto_grpc//{{ .Lang.Dir }}:defs.bzl", "{{ .Rule.Name }}")
Expand Down

0 comments on commit 6860060

Please sign in to comment.