No need for protoc_gen_shared.sh
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
9f054c4ec5
commit
53a8de8a7e
@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
find . -name '*.proto' -print0 | xargs -0 -I {} /bin/sh -c 'cd $(dirname $1); PATH=$PATH:/go/bin protoc --micro_out=paths=source_relative:. --go_out=paths=source_relative:. $(basename $1)' '_' '{}'
|
||||
find . -name '*.proto' -print0 | xargs -0 -I {} /bin/sh -c 'cd $(dirname $1); protoc --proto_path=$GOPATH/bin:. -I/code --micro_out=paths=source_relative:. --go_out=paths=source_relative:. $(basename $1)' '_' '{}'
|
@ -1,17 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -ex
|
||||
|
||||
# Build shared
|
||||
if test -d /code/shared/proto; then
|
||||
for proto in $(find /code/shared/proto -type f -name '*.proto' -print0 | xargs -0); do
|
||||
cd $(dirname ${proto})
|
||||
protoc -I/code --proto_path=$GOPATH/bin:. --micro_out=paths=source_relative:. --go_out=paths=source_relative:. $(basename ${proto})
|
||||
done
|
||||
fi
|
||||
|
||||
for proto in $(find /code/service -type f -name '*.proto' -print0 | xargs -0); do
|
||||
cd $(dirname ${proto})
|
||||
protoc -I/code --proto_path=$GOPATH/bin:. --micro_out=paths=source_relative:. --go_out=paths=source_relative:. $(basename ${proto})
|
||||
done
|
||||
|
||||
cd /code
|
Loading…
Reference in New Issue