Skip to content

Commit 5c27949

Browse files
authored
Merge pull request #227 from rules-proto-grpc/dev
4.3.0 Release
2 parents 58f5683 + fbd914b commit 5c27949

File tree

114 files changed

+1457
-998
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+1457
-998
lines changed

.bazelci/presubmit.yml

+42-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tasks:
88
build_flags:
99
- "--host_platform=@io_bazel_rules_dotnet//dotnet/toolchain:linux_amd64_6.0.101"
1010
- "--platforms=@io_bazel_rules_dotnet//dotnet/toolchain:linux_amd64_6.0.101"
11-
- "--host_cxxopt=-std=c++17"
11+
- "--cxxopt=-std=c++17"
1212
build_targets:
1313
- "//buf/..."
1414
- "//c/..."
@@ -29,6 +29,7 @@ tasks:
2929
- "--test_output=errors"
3030
- "--host_platform=@io_bazel_rules_dotnet//dotnet/toolchain:linux_amd64_6.0.101"
3131
- "--platforms=@io_bazel_rules_dotnet//dotnet/toolchain:linux_amd64_6.0.101"
32+
- "--cxxopt=-std=c++17"
3233
test_targets:
3334
- "//example/routeguide:cpp_cpp"
3435
- "//example/routeguide:cpp_csharp"
@@ -108,7 +109,7 @@ tasks:
108109
build_flags:
109110
- "--host_platform=@io_bazel_rules_dotnet//dotnet/toolchain:darwin_amd64_6.0.101"
110111
- "--platforms=@io_bazel_rules_dotnet//dotnet/toolchain:darwin_amd64_6.0.101"
111-
- "--host_cxxopt=-std=c++17"
112+
- "--cxxopt=-std=c++17"
112113
build_targets:
113114
- "//buf/..."
114115
- "//c/..."
@@ -131,6 +132,7 @@ tasks:
131132
- "--test_output=errors"
132133
- "--host_platform=@io_bazel_rules_dotnet//dotnet/toolchain:darwin_amd64_6.0.101"
133134
- "--platforms=@io_bazel_rules_dotnet//dotnet/toolchain:darwin_amd64_6.0.101"
135+
- "--cxxopt=-std=c++17"
134136
test_targets:
135137
- "//example/routeguide:cpp_cpp"
136138
- "//example/routeguide:cpp_csharp"
@@ -209,6 +211,7 @@ tasks:
209211
platform: ubuntu2004
210212
shell_commands:
211213
- set -x
214+
- export CC=clang
212215
- make android_android_proto_compile_example
213216
- make android_android_grpc_compile_example
214217
- make android_android_proto_library_example
@@ -219,6 +222,7 @@ tasks:
219222
platform: macos
220223
shell_commands:
221224
- set -x
225+
- export CC=clang
222226
- make android_android_proto_compile_example
223227
- make android_android_grpc_compile_example
224228
- make android_android_proto_library_example
@@ -229,6 +233,7 @@ tasks:
229233
platform: ubuntu2004
230234
shell_commands:
231235
- set -x
236+
- export CC=clang
232237
- make buf_buf_proto_breaking_test_example
233238
- make buf_buf_proto_lint_test_example
234239

@@ -237,6 +242,7 @@ tasks:
237242
platform: macos
238243
shell_commands:
239244
- set -x
245+
- export CC=clang
240246
- make buf_buf_proto_breaking_test_example
241247
- make buf_buf_proto_lint_test_example
242248

@@ -245,6 +251,7 @@ tasks:
245251
platform: ubuntu2004
246252
shell_commands:
247253
- set -x
254+
- export CC=clang
248255
- make c_c_proto_compile_example
249256
- make c_c_proto_library_example
250257

@@ -253,6 +260,7 @@ tasks:
253260
platform: macos
254261
shell_commands:
255262
- set -x
263+
- export CC=clang
256264
- make c_c_proto_compile_example
257265
- make c_c_proto_library_example
258266

@@ -261,6 +269,7 @@ tasks:
261269
platform: ubuntu2004
262270
shell_commands:
263271
- set -x
272+
- export CC=clang
264273
- make cpp_cpp_proto_compile_example
265274
- make cpp_cpp_grpc_compile_example
266275
- make cpp_cpp_proto_library_example
@@ -271,6 +280,7 @@ tasks:
271280
platform: macos
272281
shell_commands:
273282
- set -x
283+
- export CC=clang
274284
- make cpp_cpp_proto_compile_example
275285
- make cpp_cpp_grpc_compile_example
276286
- make cpp_cpp_proto_library_example
@@ -281,6 +291,7 @@ tasks:
281291
platform: ubuntu2004
282292
shell_commands:
283293
- set -x
294+
- export CC=clang
284295
- export BAZEL_EXTRA_FLAGS="--host_platform=@io_bazel_rules_dotnet//dotnet/toolchain:linux_amd64_6.0.101 $BAZEL_EXTRA_FLAGS"
285296
- export BAZEL_EXTRA_FLAGS="--platforms=@io_bazel_rules_dotnet//dotnet/toolchain:linux_amd64_6.0.101 $BAZEL_EXTRA_FLAGS"
286297
- make csharp_csharp_proto_compile_example
@@ -293,6 +304,7 @@ tasks:
293304
platform: macos
294305
shell_commands:
295306
- set -x
307+
- export CC=clang
296308
- export BAZEL_EXTRA_FLAGS="--host_platform=@io_bazel_rules_dotnet//dotnet/toolchain:darwin_amd64_6.0.101 $BAZEL_EXTRA_FLAGS"
297309
- export BAZEL_EXTRA_FLAGS="--platforms=@io_bazel_rules_dotnet//dotnet/toolchain:darwin_amd64_6.0.101 $BAZEL_EXTRA_FLAGS"
298310
- make csharp_csharp_proto_compile_example
@@ -305,6 +317,7 @@ tasks:
305317
platform: ubuntu2004
306318
shell_commands:
307319
- set -x
320+
- export CC=clang
308321
- make d_d_proto_compile_example
309322
- make d_d_proto_library_example
310323

@@ -313,6 +326,7 @@ tasks:
313326
platform: ubuntu2004
314327
shell_commands:
315328
- set -x
329+
- export CC=clang
316330
- make doc_doc_docbook_compile_example
317331
- make doc_doc_html_compile_example
318332
- make doc_doc_json_compile_example
@@ -324,6 +338,7 @@ tasks:
324338
platform: macos
325339
shell_commands:
326340
- set -x
341+
- export CC=clang
327342
- make doc_doc_docbook_compile_example
328343
- make doc_doc_html_compile_example
329344
- make doc_doc_json_compile_example
@@ -335,6 +350,7 @@ tasks:
335350
platform: ubuntu2004
336351
shell_commands:
337352
- set -x
353+
- export CC=clang
338354
- export BAZEL_EXTRA_FLAGS="--host_platform=@io_bazel_rules_dotnet//dotnet/toolchain:linux_amd64_6.0.101 $BAZEL_EXTRA_FLAGS"
339355
- export BAZEL_EXTRA_FLAGS="--platforms=@io_bazel_rules_dotnet//dotnet/toolchain:linux_amd64_6.0.101 $BAZEL_EXTRA_FLAGS"
340356
- make fsharp_fsharp_proto_compile_example
@@ -347,6 +363,7 @@ tasks:
347363
platform: macos
348364
shell_commands:
349365
- set -x
366+
- export CC=clang
350367
- export BAZEL_EXTRA_FLAGS="--host_platform=@io_bazel_rules_dotnet//dotnet/toolchain:darwin_amd64_6.0.101 $BAZEL_EXTRA_FLAGS"
351368
- export BAZEL_EXTRA_FLAGS="--platforms=@io_bazel_rules_dotnet//dotnet/toolchain:darwin_amd64_6.0.101 $BAZEL_EXTRA_FLAGS"
352369
- make fsharp_fsharp_proto_compile_example
@@ -359,6 +376,7 @@ tasks:
359376
platform: ubuntu2004
360377
shell_commands:
361378
- set -x
379+
- export CC=clang
362380
- make go_go_proto_compile_example
363381
- make go_go_grpc_compile_example
364382
- make go_go_validate_compile_example
@@ -371,6 +389,7 @@ tasks:
371389
platform: macos
372390
shell_commands:
373391
- set -x
392+
- export CC=clang
374393
- make go_go_proto_compile_example
375394
- make go_go_grpc_compile_example
376395
- make go_go_validate_compile_example
@@ -383,6 +402,7 @@ tasks:
383402
platform: ubuntu2004
384403
shell_commands:
385404
- set -x
405+
- export CC=clang
386406
- make grpc-gateway_gateway_grpc_compile_example
387407
- make grpc-gateway_gateway_openapiv2_compile_example
388408
- make grpc-gateway_gateway_grpc_library_example
@@ -392,6 +412,7 @@ tasks:
392412
platform: macos
393413
shell_commands:
394414
- set -x
415+
- export CC=clang
395416
- make grpc-gateway_gateway_grpc_compile_example
396417
- make grpc-gateway_gateway_openapiv2_compile_example
397418
- make grpc-gateway_gateway_grpc_library_example
@@ -401,6 +422,7 @@ tasks:
401422
platform: ubuntu2004
402423
shell_commands:
403424
- set -x
425+
- export CC=clang
404426
- make java_java_proto_compile_example
405427
- make java_java_grpc_compile_example
406428
- make java_java_proto_library_example
@@ -411,6 +433,7 @@ tasks:
411433
platform: macos
412434
shell_commands:
413435
- set -x
436+
- export CC=clang
414437
- make java_java_proto_compile_example
415438
- make java_java_grpc_compile_example
416439
- make java_java_proto_library_example
@@ -421,6 +444,7 @@ tasks:
421444
platform: ubuntu2004
422445
shell_commands:
423446
- set -x
447+
- export CC=clang
424448
- make js_js_proto_compile_example
425449
- make js_js_grpc_node_compile_example
426450
- make js_js_grpc_web_compile_example
@@ -433,6 +457,7 @@ tasks:
433457
platform: macos
434458
shell_commands:
435459
- set -x
460+
- export CC=clang
436461
- make js_js_proto_compile_example
437462
- make js_js_grpc_node_compile_example
438463
- make js_js_grpc_web_compile_example
@@ -445,6 +470,7 @@ tasks:
445470
platform: macos
446471
shell_commands:
447472
- set -x
473+
- export CC=clang
448474
- make objc_objc_proto_compile_example
449475
- make objc_objc_grpc_compile_example
450476
- make objc_objc_proto_library_example
@@ -455,6 +481,7 @@ tasks:
455481
platform: ubuntu2004
456482
shell_commands:
457483
- set -x
484+
- export CC=clang
458485
- make php_php_proto_compile_example
459486
- make php_php_grpc_compile_example
460487

@@ -463,6 +490,7 @@ tasks:
463490
platform: macos
464491
shell_commands:
465492
- set -x
493+
- export CC=clang
466494
- make php_php_proto_compile_example
467495
- make php_php_grpc_compile_example
468496

@@ -471,6 +499,7 @@ tasks:
471499
platform: ubuntu2004
472500
shell_commands:
473501
- set -x
502+
- export CC=clang
474503
- make python_python_proto_compile_example
475504
- make python_python_grpc_compile_example
476505
- make python_python_grpclib_compile_example
@@ -483,6 +512,7 @@ tasks:
483512
platform: macos
484513
shell_commands:
485514
- set -x
515+
- export CC=clang
486516
- make python_python_proto_compile_example
487517
- make python_python_grpc_compile_example
488518
- make python_python_proto_library_example
@@ -493,6 +523,7 @@ tasks:
493523
platform: ubuntu2004
494524
shell_commands:
495525
- set -x
526+
- export CC=clang
496527
- make ruby_ruby_proto_compile_example
497528
- make ruby_ruby_grpc_compile_example
498529
- make ruby_ruby_proto_library_example
@@ -503,6 +534,7 @@ tasks:
503534
platform: macos
504535
shell_commands:
505536
- set -x
537+
- export CC=clang
506538
- make ruby_ruby_proto_compile_example
507539
- make ruby_ruby_grpc_compile_example
508540
- make ruby_ruby_proto_library_example
@@ -513,6 +545,7 @@ tasks:
513545
platform: ubuntu2004
514546
shell_commands:
515547
- set -x
548+
- export CC=clang
516549
- make rust_rust_proto_compile_example
517550
- make rust_rust_grpc_compile_example
518551
- make rust_rust_proto_library_example
@@ -523,6 +556,7 @@ tasks:
523556
platform: ubuntu2004
524557
shell_commands:
525558
- set -x
559+
- export CC=clang
526560
- make scala_scala_proto_compile_example
527561
- make scala_scala_grpc_compile_example
528562
- make scala_scala_proto_library_example
@@ -533,6 +567,7 @@ tasks:
533567
platform: macos
534568
shell_commands:
535569
- set -x
570+
- export CC=clang
536571
- make scala_scala_proto_compile_example
537572
- make scala_scala_grpc_compile_example
538573
- make scala_scala_proto_library_example
@@ -543,6 +578,7 @@ tasks:
543578
platform: macos
544579
shell_commands:
545580
- set -x
581+
- export CC=clang
546582
- make swift_swift_proto_compile_example
547583
- make swift_swift_grpc_compile_example
548584
- make swift_swift_proto_library_example
@@ -553,6 +589,7 @@ tasks:
553589
platform: ubuntu2004
554590
shell_commands:
555591
- set -x
592+
- export CC=clang
556593
- make test_workspace_absolute_strip_import_prefix
557594
- make test_workspace_combined_strip_and_add_prefix
558595
- make test_workspace_common_cpp_library
@@ -570,12 +607,14 @@ tasks:
570607
- make test_workspace_readme_http_archive
571608
- make test_workspace_relative_strip_import_prefix
572609
- make test_workspace_shared_proto
610+
- make test_workspace_special_characters
573611

574612
macos_test_workspaces:
575613
name: test workspaces
576614
platform: macos
577615
shell_commands:
578616
- set -x
617+
- export CC=clang
579618
- make test_workspace_absolute_strip_import_prefix
580619
- make test_workspace_combined_strip_and_add_prefix
581620
- make test_workspace_common_cpp_library
@@ -593,3 +632,4 @@ tasks:
593632
- make test_workspace_readme_http_archive
594633
- make test_workspace_relative_strip_import_prefix
595634
- make test_workspace_shared_proto
635+
- make test_workspace_special_characters

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ ruby_bundle_upgrade:
4646
# Run pip-compile to upgrade python dependencies
4747
.PHONY: pip_compile
4848
pip_compile:
49-
rm python/requirements.txt
50-
pip-compile python/requirements.in --output-file python/requirements.txt
49+
echo '' > python/requirements.txt
50+
bazel run //python:requirements.update
5151

5252

5353
# Run C# package regeneration

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414

1515
## Announcements 📣
1616

17-
#### 2022/08/24 - Version 4.2.0
17+
#### 2022/12/04 - Version 4.3.0
1818

19-
[Version 4.2.0 has been released](https://github.com/rules-proto-grpc/rules_proto_grpc/releases/tag/4.2.0),
20-
which contains a number of bug-fixes and dependency updates
19+
[Version 4.3.0 has been released](https://github.com/rules-proto-grpc/rules_proto_grpc/releases/tag/4.3.0),
20+
which contains support for more plugins features, fixes for proto paths containing special
21+
characters and updates to the core dependencies
2122

2223

2324
## Usage

WORKSPACE

+6-2
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,18 @@ load("//python:repositories.bzl", "python_repos")
230230

231231
python_repos()
232232

233-
load("@rules_python//python:pip.bzl", "pip_install")
233+
load("@rules_python//python:pip.bzl", "pip_parse")
234234

235-
pip_install(
235+
pip_parse(
236236
name = "rules_proto_grpc_py3_deps",
237237
python_interpreter = "python3",
238238
requirements = "@rules_proto_grpc//python:requirements.txt",
239239
)
240240

241+
load("@rules_proto_grpc_py3_deps//:requirements.bzl", "install_deps")
242+
243+
install_deps()
244+
241245
#
242246
# Ruby
243247
#

0 commit comments

Comments
 (0)