Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
afaa8278
Commit
afaa8278
authored
Oct 12, 2016
by
Feng Xiao
Committed by
GitHub
Oct 12, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2246 from fweikert/patch-1
Declare all inputs of protoc action
parents
fd046f62
c2b3e70e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
protobuf.bzl
protobuf.bzl
+3
-1
No files found.
protobuf.bzl
View file @
afaa8278
...
...
@@ -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
+
dep
s
,
inputs
=
input
s
,
outputs
=
ctx
.
outputs
.
outs
,
arguments
=
args
+
import_flags
+
[
s
.
path
for
s
in
srcs
],
executable
=
ctx
.
executable
.
protoc
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment