Commit aa033d6
authored
Add scripts to fetch and generate protos (#1784)
* Add scripts to fetch and generate protos
Motivation:
Many of the proto files used in the repo are copied from upstream gRPC
repos and built using the Makefile. There's no easy wasy to update the
proto files and the Makefile has grown quite unwieldly and tends to be a
bit painful to update. It's also inconvenient to run each generate
target and targets often get missed.
Modifications:
- Add a 'Protos' directory containing two scripts: 'fetch.sh' and
'generate.sh'.
- 'fetch.sh' clones a few upstream gRPC repos and selectively copies out
protos we are interested in into 'Protos/upstream'. This makes it
convenient to update all vendored protos.
- 'generate.sh' effectively replaces the Makefile with separaet
functions for generating grpc code and messages.
- Move a few other protos from Sources/Tests into Protos
- Remove the Makefile
Result:
Much easier to update and re-generate protos.1 parent 53396af commit aa033d6
File tree
27 files changed
+1606
-335
lines changed- Protos
- examples
- echo
- route_guide
- tests/normalization
- upstream
- google/rpc
- grpc
- examples
- lookup/v1
- reflection
- v1alpha
- v1
- service_config
- Sources
- Examples
- HelloWorld/Model
- ReflectionService/Generated
- GRPCReflectionService
- v1Alpha
- v1
- Tests/GRPCTests
- Codegen/Normalization
- GRPCReflectionServiceTests/Generated
- v1Alpha
- v1
27 files changed
+1606
-335
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
280 | | - | |
| 279 | + | |
281 | 280 | | |
282 | 281 | | |
283 | 282 | | |
| |||
298 | 297 | | |
299 | 298 | | |
300 | 299 | | |
301 | | - | |
| 300 | + | |
302 | 301 | | |
303 | 302 | | |
304 | 303 | | |
| |||
319 | 318 | | |
320 | 319 | | |
321 | 320 | | |
322 | | - | |
| 321 | + | |
323 | 322 | | |
324 | 323 | | |
325 | 324 | | |
326 | 325 | | |
327 | 326 | | |
328 | 327 | | |
329 | | - | |
| 328 | + | |
330 | 329 | | |
331 | 330 | | |
332 | 331 | | |
| |||
349 | 348 | | |
350 | 349 | | |
351 | 350 | | |
352 | | - | |
| 351 | + | |
353 | 352 | | |
354 | 353 | | |
355 | 354 | | |
| |||
359 | 358 | | |
360 | 359 | | |
361 | 360 | | |
362 | | - | |
| 361 | + | |
363 | 362 | | |
364 | 363 | | |
365 | 364 | | |
| |||
447 | 446 | | |
448 | 447 | | |
449 | 448 | | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
| 449 | + | |
454 | 450 | | |
455 | 451 | | |
456 | 452 | | |
| |||
489 | 485 | | |
490 | 486 | | |
491 | 487 | | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
| 488 | + | |
496 | 489 | | |
497 | 490 | | |
498 | 491 | | |
| |||
526 | 519 | | |
527 | 520 | | |
528 | 521 | | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
| 522 | + | |
533 | 523 | | |
534 | 524 | | |
535 | 525 | | |
| |||
580 | 570 | | |
581 | 571 | | |
582 | 572 | | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
| 573 | + | |
588 | 574 | | |
589 | 575 | | |
590 | 576 | | |
| |||
609 | 595 | | |
610 | 596 | | |
611 | 597 | | |
612 | | - | |
| 598 | + | |
613 | 599 | | |
614 | 600 | | |
615 | 601 | | |
| |||
0 commit comments