浏览代码

Strip trailing / from path

Fahrzin Hemmati 7 年之前
父节点
当前提交
a6501e4a2b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      protobuf.bzl

+ 1 - 1
protobuf.bzl

@@ -94,7 +94,7 @@ def _proto_gen_impl(ctx):
   for src, out in zip(srcs, ctx.outputs.outs):
   for src, out in zip(srcs, ctx.outputs.outs):
     args = []
     args = []
 
 
-    in_gen_dir = src.root.path == gen_dir
+    in_gen_dir = src.root.path == gen_dir.rstrip('/')
     if in_gen_dir:
     if in_gen_dir:
       import_flags_real = []
       import_flags_real = []
       for f in depset(import_flags):
       for f in depset(import_flags):