Skip to content

Commit

Permalink
Added more rules to resolve deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaidrygoog committed May 24, 2019
1 parent 4995670 commit 49e7f4b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
14 changes: 12 additions & 2 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -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()
6 changes: 6 additions & 0 deletions bazel/grpc_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 49e7f4b

Please sign in to comment.