api config: add build rules for go protos (#7987)

Some BUILD files are missing build rules to generate go protos. envoyproxy/go-control-plane depends on these protos, so they should be exposed publicly. Added build rules to generate *.pb.go files.

Risk Level: Low
Testing: These rules were copied to google3 and tested internally. Unfortunately, I am having a bit of trouble with bazel build directly on these targets ("Package is considered deleted due to --deleted_packages"). Please let me know if there is a better way to test this change.

Signed-off-by: Teju Nareddy <nareddyt@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ c7110f8d10d928a3b18ee6a05439d7b4e49e595c
pull/620/head
data-plane-api(CircleCI) 6 years ago
parent cb461e3f4c
commit ecc0d1551d
  1. 8
      envoy/config/accesslog/v2/BUILD
  2. 12
      envoy/config/filter/network/tcp_proxy/v2/BUILD

@ -1,4 +1,4 @@
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_library_internal") load("@envoy_api//bazel:api_build_system.bzl", "api_go_proto_library", "api_proto_library_internal")
licenses(["notice"]) # Apache 2 licenses(["notice"]) # Apache 2
@ -14,3 +14,9 @@ api_proto_library_internal(
name = "file", name = "file",
srcs = ["file.proto"], srcs = ["file.proto"],
) )
api_go_proto_library(
name = "als",
proto = ":als",
deps = ["//envoy/api/v2/core:grpc_service_go_proto"],
)

@ -1,4 +1,4 @@
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_library_internal") load("@envoy_api//bazel:api_build_system.bzl", "api_go_proto_library", "api_proto_library_internal")
licenses(["notice"]) # Apache 2 licenses(["notice"]) # Apache 2
@ -11,3 +11,13 @@ api_proto_library_internal(
"//envoy/config/filter/accesslog/v2:accesslog", "//envoy/config/filter/accesslog/v2:accesslog",
], ],
) )
api_go_proto_library(
name = "tcp_proxy",
proto = ":tcp_proxy",
deps = [
"//envoy/api/v2/core:address_go_proto",
"//envoy/api/v2/core:base_go_proto",
"//envoy/config/filter/accesslog/v2:accesslog_go_proto",
],
)

Loading…
Cancel
Save