scripts/genproto: use 'gopath.proto' for $GOPATH

This commit is contained in:
Gyu-Ho Lee 2016-10-03 14:42:45 -07:00
parent dfe85b26cc
commit 8174fcf201
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
/coverage
/gopath
/gopath.proto
/go-bindata
/machine*
/bin

View File

@ -24,7 +24,7 @@ GOGO_PROTO_SHA="5f813990bfffa3c2f4414dbea480e705ab280358"
GRPC_GATEWAY_SHA="c8ec92d0481dd77d9b8c1808eb6476d190aa039a"
# set up self-contained GOPATH for building
export GOPATH=${PWD}/gopath
export GOPATH=${PWD}/gopath.proto
export GOBIN=${PWD}/bin
export PATH="${GOBIN}:${PATH}"
@ -76,6 +76,8 @@ protoc -I. \
--swagger_out=logtostderr=true:./Documentation/dev-guide/apispec/swagger/. \
./etcdserver/etcdserverpb/rpc.proto
rm -rf ${PWD}/gopath.proto
# TODO: change this whenever we add more swagger API
mv \
Documentation/dev-guide/apispec/swagger/etcdserver/etcdserverpb/rpc.swagger.json \