blob: 1c85062d2cc37cc18218599bbebcb2a9abc8c157 [file] [log] [blame]
Austin Schuh272c6132020-11-14 16:37:52 -08001diff --git a/protobuf.bzl b/protobuf.bzl
2index 78f19c621..3b6d183b9 100644
3--- a/protobuf.bzl
4+++ b/protobuf.bzl
5@@ -130,7 +130,7 @@ proto_gen = rule(
6 "protoc": attr.label(
7 cfg = "host",
8 executable = True,
9- single_file = True,
10+ allow_single_file = True,
11 mandatory = True,
12 ),
13 "plugin": attr.label(
14@@ -266,8 +266,8 @@ def internal_gen_well_known_protos_java(srcs):
15 Args:
16 srcs: the well known protos
17 """
18- root = Label("%s//protobuf_java" % (REPOSITORY_NAME)).workspace_root
19- pkg = PACKAGE_NAME + "/" if PACKAGE_NAME else ""
20+ root = Label("%s//protobuf_java" % (native.repository_name())).workspace_root
21+ pkg = native.package_name() + "/" if native.package_name() else ""
22 if root == "":
23 include = " -I%ssrc " % pkg
24 else: