mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
scripts/genproto: use 'gopath.proto' for $GOPATH
This commit is contained in:
parent
dfe85b26cc
commit
8174fcf201
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
/coverage
|
||||
/gopath
|
||||
/gopath.proto
|
||||
/go-bindata
|
||||
/machine*
|
||||
/bin
|
||||
|
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user