Skip to content

Commit 937628e

Browse files
authored
35 failed to resolve symbol (#37)
* update ecample to protobug_generate and fixup core * cleanup * dont pollute with TODO, it should be an issue if merged
1 parent ffeee2f commit 937628e

File tree

7 files changed

+555
-14
lines changed

7 files changed

+555
-14
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "googleapis"]
2+
path = examples/helloworld/priv/protos/googleapis
3+
url = https://github.com/googleapis/googleapis.git

examples/helloworld/.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@ erl_crash.dump
2020
/src/grpc_c
2121
/tmp
2222

23-
/log
24-
25-
*.pb.ex
23+
/log
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
#!/bin/bash
22

3-
rm -rf ./lib/protos
4-
mkdir ./lib/protos
5-
63
PROTOS=("
74
priv/protos/helloworld.proto
85
")
96

107
for file in $PROTOS; do
11-
protoc --elixir_opt=include_docs=true --elixir_out=plugins=grpc,gen_descriptors=true:./lib/protos --proto_path=priv/protos/ $file
8+
mix protobuf.generate \
9+
--output-path=./lib/protos \
10+
--include-docs=true \
11+
--generate-descriptors=true \
12+
--include-path=priv/protos/ \
13+
--include-path=./priv/protos/googleapis \
14+
--plugin=ProtobufGenerate.Plugins.GRPC \
15+
--one-file-per-module \
16+
$file
1217
done

0 commit comments

Comments
 (0)