diff options
author | Feng Xiao <xiaofeng@google.com> | 2016-10-12 10:48:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-12 10:48:22 -0700 |
commit | afaa827860cb72b2d5298547d3e2ad4c9ca52a1c (patch) | |
tree | 5c2cef352815486c955fdbdc431154adb6f01a03 /protobuf.bzl | |
parent | fd046f6263fb17383cafdbb25c361e3451c31105 (diff) | |
parent | c2b3e70efd2038a54ef8973771ac58192885125e (diff) | |
download | protobuf-afaa827860cb72b2d5298547d3e2ad4c9ca52a1c.tar.gz protobuf-afaa827860cb72b2d5298547d3e2ad4c9ca52a1c.tar.bz2 protobuf-afaa827860cb72b2d5298547d3e2ad4c9ca52a1c.zip |
Merge pull request #2246 from fweikert/patch-1
Declare all inputs of protoc action
Diffstat (limited to 'protobuf.bzl')
-rw-r--r-- | protobuf.bzl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protobuf.bzl b/protobuf.bzl index e356f53c..e56a5365 100644 --- a/protobuf.bzl +++ b/protobuf.bzl @@ -62,6 +62,7 @@ def _proto_gen_impl(ctx): if ctx.attr.gen_py: args += ["--python_out=" + ctx.var["GENDIR"] + "/" + gen_dir] + inputs = srcs + deps if ctx.executable.plugin: plugin = ctx.executable.plugin lang = ctx.attr.plugin_language @@ -75,10 +76,11 @@ def _proto_gen_impl(ctx): outdir = ",".join(ctx.attr.plugin_options) + ":" + outdir args += ["--plugin=protoc-gen-%s=%s" % (lang, plugin.path)] args += ["--%s_out=%s" % (lang, outdir)] + inputs += [plugin] if args: ctx.action( - inputs=srcs + deps, + inputs=inputs, outputs=ctx.outputs.outs, arguments=args + import_flags + [s.path for s in srcs], executable=ctx.executable.protoc, |