From a6501e4a2b491ad6d27a8e47e93b74e3230a5406 Mon Sep 17 00:00:00 2001 From: Fahrzin Hemmati Date: Wed, 14 Mar 2018 15:23:23 -0700 Subject: Strip trailing / from path --- protobuf.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protobuf.bzl') diff --git a/protobuf.bzl b/protobuf.bzl index 2d8556f9..98e18108 100644 --- a/protobuf.bzl +++ b/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): -- cgit v1.2.3