You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-16Lines changed: 8 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,30 +145,22 @@ See the [examples](./examples) directory for a list of sample orchestrations and
145
145
146
146
### Generating protobufs
147
147
148
-
Protobuf definitions are stored in the [./submodules/durabletask-proto](./submodules/durabletask-proto) directory, which is a submodule. To update the submodule, run the following command from the project root:
148
+
Protobuf definitions are downloaded from the [durabletask-protobuf](https://github.com/microsoft/durabletask-protobuf) repository. To download the latest proto files, run:
149
149
150
150
```sh
151
-
git submodule update --init
151
+
npm run download-proto
152
152
```
153
153
154
-
Once the submodule is available, the corresponding source code can be regenerated using the following command from the project root:
154
+
This will download the proto files to `internal/durabletask-protobuf/protos/`.
155
+
156
+
Once the proto files are available, the corresponding TypeScript source code can be regenerated using the following command from the project root:
This directory contains the protocol buffer definitions used by the Durable Task Framework JavaScript SDK. The files in this directory are automatically downloaded and updated during the build process from the [microsoft/durabletask-protobuf](https://github.com/microsoft/durabletask-protobuf) repository.
4
+
5
+
## Directory Structure
6
+
7
+
-`protos/` - Contains the proto files
8
+
-`PROTO_SOURCE_COMMIT_HASH` - Contains the commit hash of the proto file version
9
+
10
+
## Auto-Update Process
11
+
12
+
The proto files are automatically downloaded and updated when running `npm run build`. This is handled by the `scripts/download-proto.sh` script. The script:
13
+
14
+
1. Downloads the latest version of `orchestrator_service.proto`
15
+
2. Saves the current commit hash for tracking purposes
0 commit comments