소스 검색

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):
     args = []
 
-    in_gen_dir = src.root.path == gen_dir
+    in_gen_dir = src.root.path == gen_dir.rstrip('/')
     if in_gen_dir:
       import_flags_real = []
       for f in depset(import_flags):