Skip to content

Commit ceb15c9

Browse files
lx223pcj
authored andcommitted
Fix root attr on proto_compile (#222)
1 parent a58399a commit ceb15c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

protobuf/internal/proto_compile.bzl

+3
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,9 @@ def _get_outdir(ctx, data):
409409
if execdir != ".":
410410
path += "/" + execdir
411411

412+
if ctx.attr.root:
413+
path += "/" + ctx.attr.root
414+
412415
return path
413416

414417

0 commit comments

Comments
 (0)