We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25bfcba commit eafd42cCopy full SHA for eafd42c
protobuf/internal/proto_compile.bzl
@@ -186,10 +186,10 @@ def _build_output_files(run, builder):
186
for ext in exts:
187
path = _get_relative_dirname(run, ctx.label.package, file)
188
189
- if ctx.var["GENDIR"].endswith("/".join(path)):
190
- # if the path context is the genfiles directory, ignore relative
191
- # path name calculation
192
- path = []
+ genpath = ctx.var["GENDIR"].split("/")
+ lastIndex = len(genpath) - 1
+ if genpath[lastIndex] in path:
+ path = []
193
194
path.append(base + ext)
195
pbfile = ctx.new_file("/".join(path))
0 commit comments