Added more rules to resolve deps

pull/19111/head
Moiz Haidry 6 years ago
parent 4995670257
commit 49e7f4b2e4
  1. 14
      BUILD
  2. 4
      WORKSPACE
  3. 6
      bazel/grpc_deps.bzl

14
BUILD

@ -2365,15 +2365,25 @@ grpc_cc_library(
],
)
proto_library(
name = "load_report_proto",
srcs = ["@data_plane_api//envoy/api/v2/endpoint:load_report.proto"]
)
upb_proto_library(
name = "upb_load_report",
deps = "@data_plane_api//envoy/api/v2/endpoint:load_report.proto"
deps = [":load_report_proto"]
)
proto_library(
name = "lrs_proto",
srcs = ["@data_plane_api//envoy/service/load_stats/v2:lrs.proto"]
)
upb_proto_library(
name = "upb_lrs",
deps = "@data_plane_api//envoy/service/load_stats/v2:lrs.proto"
deps = [":lrs_proto"]
)
#TODO: Get this into build.yaml once we start using it.

@ -72,3 +72,7 @@ upb_deps()
load("@data_plane_api//bazel:repositories.bzl", "api_dependencies")
api_dependencies()
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()

@ -224,6 +224,12 @@ def grpc_deps():
url = "https://github.com/envoyproxy/data-plane-api/archive/911001cdca003337bdb93fab32740cde61bafee3.tar.gz",
)
if "io_bazel_rules_go" not in native.existing_rules():
http_archive(
name = "io_bazel_rules_go",
urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.18.5/rules_go-0.18.5.tar.gz"],
sha256 = "a82a352bffae6bee4e95f68a8d80a70e87f42c4741e6a448bec11998fcc82329",
)
# TODO: move some dependencies from "grpc_deps" here?
def grpc_test_only_deps():
"""Internal, not intended for use by packages that are consuming grpc.

Loading…
Cancel
Save