Skip to content

Commit 47cc1dc

Browse files
authored
chore: configure dapr branch to pull protos from (#828)
Signed-off-by: Albert Callarisa <albert@diagrid.io>
1 parent 5882d52 commit 47cc1dc

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ The generated files will be found in `docs/_build`.
140140

141141
```sh
142142
pip3 install -r tools/requirements.txt
143+
export DAPR_BRANCH=release-1.16 # Optional, defaults to master
143144
./tools/regen_grpcclient.sh
144145
```
145146

dapr/proto/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Run the following commands:
1313

1414
```sh
1515
pip3 install -r tools/requirements.txt
16+
export DAPR_BRANCH=release-1.16 # Optional, defaults to master
1617
./tools/regen_grpcclient.sh
1718
```
1819

tools/regen_grpcclient.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# Path to store output
1717
PROTO_PATH="dapr/proto"
1818
SRC=.
19+
DAPR_BRANCH=${DAPR_BRANCH:-master}
1920

2021
# Http request CLI
2122
HTTP_REQUEST_CLI=curl
@@ -38,7 +39,7 @@ downloadFile() {
3839
FILE_PATH="${PROTO_PATH}/${PKG_NAME}/v1"
3940

4041
# URL for proto file
41-
PROTO_URL="https://raw.githubusercontent.com/dapr/dapr/master/dapr/proto/${PKG_NAME}/v1/${FILE_NAME}.proto"
42+
PROTO_URL="https://raw.githubusercontent.com/dapr/dapr/${DAPR_BRANCH}/dapr/proto/${PKG_NAME}/v1/${FILE_NAME}.proto"
4243

4344
mkdir -p "${FILE_PATH}"
4445

0 commit comments

Comments
 (0)