Skip to content

Commit

Permalink
Remove xargs warning for Python generation (#381)
Browse files Browse the repository at this point in the history
There is a warning when running with `-l python`:
```
$ docker run -v $PWD:/defs namely/protoc-all:1.51_2 -l python -d /defs
xargs: warning: options --max-args and --replace/-I/-i are mutually exclusive, ignoring previous --max-args value
```
Hence we can remove the `--max-args` a.k.a. `-n` option.
  • Loading branch information
maxjakob authored Sep 12, 2023
1 parent 0e42d27 commit 075b661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion all/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ protoc $PROTO_INCLUDE \
if [[ $GEN_LANG == "python" ]]; then
# Create __init__.py for everything in the OUT_DIR
# (i.e. gen/pb_python/foo/bar/).
find $OUT_DIR -type d | xargs -n1 -I '{}' touch '{}/__init__.py'
find $OUT_DIR -type d | xargs -I '{}' touch '{}/__init__.py'
# And everything above it (i.e. gen/__init__py")
d=`dirname $OUT_DIR`
while [[ "$d" != "." && "$d" != "/" ]]; do
Expand Down

0 comments on commit 075b661

Please sign in to comment.