Skip to content

Commit

Permalink
Fix incompatible_bzl_disallow_load_after_statement, deprecated attrib…
Browse files Browse the repository at this point in the history
…ute usage
  • Loading branch information
vmax committed Dec 24, 2018
1 parent c3eb206 commit 25e13ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bazel/cc_grpc_library.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Generates and compiles C++ grpc stubs from proto_library rules."""

load("//:bazel/generate_cc.bzl", "generate_cc")
load("//bazel:generate_cc.bzl", "generate_cc")

def cc_grpc_library(name, srcs, deps, proto_only, well_known_protos, generate_mocks = False, use_external = False, **kwargs):
"""Generates C++ grpc classes from a .proto file.
Expand Down
2 changes: 1 addition & 1 deletion bazel/generate_cc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ _generate_cc = rule(
attrs = {
"srcs": attr.label_list(
mandatory = True,
non_empty = True,
allow_empty = False,
providers = ["proto"],
),
"plugin": attr.label(
Expand Down
3 changes: 2 additions & 1 deletion bazel/grpc_build_system.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
# each change must be ported from one to the other.
#

load("//bazel:cc_grpc_library.bzl", "cc_grpc_library")

# The set of pollers to test against if a test exercises polling
POLLERS = ["epollex", "epoll1", "poll", "poll-cv"]

Expand Down Expand Up @@ -111,7 +113,6 @@ def grpc_proto_plugin(name, srcs = [], deps = []):
deps = deps,
)

load("//:bazel/cc_grpc_library.bzl", "cc_grpc_library")

def grpc_proto_library(
name,
Expand Down

0 comments on commit 25e13ac

Please sign in to comment.