Răsfoiți Sursa

Merge pull request #5404 from acozzette/cherry-pick-4650

Cherry-picked fix from PR #4650 into 3.6.x branch
Adam Cozzette 6 ani în urmă
părinte
comite
aa36885551
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      protobuf.bzl

+ 2 - 2
protobuf.bzl

@@ -266,8 +266,8 @@ def internal_gen_well_known_protos_java(srcs):
   Args:
   Args:
     srcs: the well known protos
     srcs: the well known protos
   """
   """
-  root = Label("%s//protobuf_java" % (REPOSITORY_NAME)).workspace_root
-  pkg = PACKAGE_NAME + "/" if PACKAGE_NAME else ""
+  root = Label("%s//protobuf_java" % (native.repository_name())).workspace_root
+  pkg = native.package_name() + "/" if native.package_name() else ""
   if root == "":
   if root == "":
     include = " -I%ssrc " % pkg
     include = " -I%ssrc " % pkg
   else:
   else: