Skip to content

Commit 616893b

Browse files
authored
Merge pull request #115 from rules-proto-grpc/dev
3.1.0 release
2 parents d70039b + 3752ec8 commit 616893b

File tree

238 files changed

+5569
-1570
lines changed

Some content is hidden

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

238 files changed

+5569
-1570
lines changed

.bazelci/presubmit.yml

Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ tasks:
99
- "--host_platform=@io_bazel_rules_dotnet//dotnet/toolchain:linux_amd64_3.1.100"
1010
- "--platforms=@io_bazel_rules_dotnet//dotnet/toolchain:linux_amd64_3.1.100"
1111
build_targets:
12+
- "//buf/..."
1213
- "//c/..."
1314
- "//cpp/..."
1415
- "//csharp/..."
1516
- "//d/..."
17+
- "//doc/..."
1618
- "//go/..."
1719
- "//grpc-gateway/..."
1820
- "//java/..."
@@ -93,10 +95,12 @@ tasks:
9395
- "--host_platform=@io_bazel_rules_dotnet//dotnet/toolchain:darwin_amd64_3.1.100"
9496
- "--platforms=@io_bazel_rules_dotnet//dotnet/toolchain:darwin_amd64_3.1.100"
9597
build_targets:
98+
- "//buf/..."
9699
- "//c/..."
97100
- "//cpp/..."
98101
- "//csharp/..."
99102
- "//d/..."
103+
- "//doc/..."
100104
- "//go/..."
101105
- "//grpc-gateway/..."
102106
- "//java/..."
@@ -242,6 +246,44 @@ tasks:
242246
build_targets:
243247
- "//..."
244248
working_directory: example/android/android_grpc_library
249+
buf_buf_proto_breaking_test_ubuntu1804:
250+
name: 'buf: buf_proto_breaking_test'
251+
platform: ubuntu1804
252+
build_flags:
253+
build_targets:
254+
- "//..."
255+
test_targets:
256+
- "//..."
257+
working_directory: example/buf/buf_proto_breaking_test
258+
buf_buf_proto_breaking_test_macos:
259+
name: 'buf: buf_proto_breaking_test'
260+
platform: macos
261+
build_flags:
262+
- "--copt=-DGRPC_BAZEL_BUILD"
263+
build_targets:
264+
- "//..."
265+
test_targets:
266+
- "//..."
267+
working_directory: example/buf/buf_proto_breaking_test
268+
buf_buf_proto_lint_test_ubuntu1804:
269+
name: 'buf: buf_proto_lint_test'
270+
platform: ubuntu1804
271+
build_flags:
272+
build_targets:
273+
- "//..."
274+
test_targets:
275+
- "//..."
276+
working_directory: example/buf/buf_proto_lint_test
277+
buf_buf_proto_lint_test_macos:
278+
name: 'buf: buf_proto_lint_test'
279+
platform: macos
280+
build_flags:
281+
- "--copt=-DGRPC_BAZEL_BUILD"
282+
build_targets:
283+
- "//..."
284+
test_targets:
285+
- "//..."
286+
working_directory: example/buf/buf_proto_lint_test
245287
c_c_proto_compile_ubuntu1804:
246288
name: 'c: c_proto_compile'
247289
platform: ubuntu1804
@@ -500,6 +542,94 @@ tasks:
500542
build_targets:
501543
- "//..."
502544
working_directory: example/d/d_proto_library
545+
doc_doc_docbook_compile_ubuntu1804:
546+
name: 'doc: doc_docbook_compile'
547+
platform: ubuntu1804
548+
build_flags:
549+
build_targets:
550+
- "//..."
551+
working_directory: example/doc/doc_docbook_compile
552+
doc_doc_docbook_compile_windows:
553+
name: 'doc: doc_docbook_compile'
554+
platform: windows
555+
build_flags:
556+
build_targets:
557+
- "//..."
558+
working_directory: example/doc/doc_docbook_compile
559+
doc_doc_docbook_compile_macos:
560+
name: 'doc: doc_docbook_compile'
561+
platform: macos
562+
build_flags:
563+
- "--copt=-DGRPC_BAZEL_BUILD"
564+
build_targets:
565+
- "//..."
566+
working_directory: example/doc/doc_docbook_compile
567+
doc_doc_html_compile_ubuntu1804:
568+
name: 'doc: doc_html_compile'
569+
platform: ubuntu1804
570+
build_flags:
571+
build_targets:
572+
- "//..."
573+
working_directory: example/doc/doc_html_compile
574+
doc_doc_html_compile_windows:
575+
name: 'doc: doc_html_compile'
576+
platform: windows
577+
build_flags:
578+
build_targets:
579+
- "//..."
580+
working_directory: example/doc/doc_html_compile
581+
doc_doc_html_compile_macos:
582+
name: 'doc: doc_html_compile'
583+
platform: macos
584+
build_flags:
585+
- "--copt=-DGRPC_BAZEL_BUILD"
586+
build_targets:
587+
- "//..."
588+
working_directory: example/doc/doc_html_compile
589+
doc_doc_json_compile_ubuntu1804:
590+
name: 'doc: doc_json_compile'
591+
platform: ubuntu1804
592+
build_flags:
593+
build_targets:
594+
- "//..."
595+
working_directory: example/doc/doc_json_compile
596+
doc_doc_json_compile_windows:
597+
name: 'doc: doc_json_compile'
598+
platform: windows
599+
build_flags:
600+
build_targets:
601+
- "//..."
602+
working_directory: example/doc/doc_json_compile
603+
doc_doc_json_compile_macos:
604+
name: 'doc: doc_json_compile'
605+
platform: macos
606+
build_flags:
607+
- "--copt=-DGRPC_BAZEL_BUILD"
608+
build_targets:
609+
- "//..."
610+
working_directory: example/doc/doc_json_compile
611+
doc_doc_markdown_compile_ubuntu1804:
612+
name: 'doc: doc_markdown_compile'
613+
platform: ubuntu1804
614+
build_flags:
615+
build_targets:
616+
- "//..."
617+
working_directory: example/doc/doc_markdown_compile
618+
doc_doc_markdown_compile_windows:
619+
name: 'doc: doc_markdown_compile'
620+
platform: windows
621+
build_flags:
622+
build_targets:
623+
- "//..."
624+
working_directory: example/doc/doc_markdown_compile
625+
doc_doc_markdown_compile_macos:
626+
name: 'doc: doc_markdown_compile'
627+
platform: macos
628+
build_flags:
629+
- "--copt=-DGRPC_BAZEL_BUILD"
630+
build_targets:
631+
- "//..."
632+
working_directory: example/doc/doc_markdown_compile
503633
go_go_proto_compile_ubuntu1804:
504634
name: 'go: go_proto_compile'
505635
platform: ubuntu1804
@@ -884,6 +1014,14 @@ tasks:
8841014
build_targets:
8851015
- "//..."
8861016
working_directory: example/objc/objc_proto_library
1017+
objc_objc_grpc_library_macos:
1018+
name: 'objc: objc_grpc_library'
1019+
platform: macos
1020+
build_flags:
1021+
- "--copt=-DGRPC_BAZEL_BUILD"
1022+
build_targets:
1023+
- "//..."
1024+
working_directory: example/objc/objc_grpc_library
8871025
php_php_proto_compile_ubuntu1804:
8881026
name: 'php: php_proto_compile'
8891027
platform: ubuntu1804
@@ -1361,6 +1499,35 @@ tasks:
13611499
test_targets:
13621500
- "//..."
13631501
working_directory: test_workspaces/generated_proto
1502+
test_workspace_go_fixer_ubuntu1804:
1503+
name: 'test workspace: go_fixer'
1504+
platform: ubuntu1804
1505+
build_flags:
1506+
test_flags:
1507+
- "--test_output=errors"
1508+
test_targets:
1509+
- "//..."
1510+
working_directory: test_workspaces/go_fixer
1511+
test_workspace_go_fixer_windows:
1512+
name: 'test workspace: go_fixer'
1513+
platform: windows
1514+
build_flags:
1515+
test_flags:
1516+
- "--test_output=errors"
1517+
test_targets:
1518+
- "//..."
1519+
working_directory: test_workspaces/go_fixer
1520+
test_workspace_go_fixer_macos:
1521+
name: 'test workspace: go_fixer'
1522+
platform: macos
1523+
build_flags:
1524+
- "--copt=-DGRPC_BAZEL_BUILD"
1525+
test_flags:
1526+
- "--test_output=errors"
1527+
- "--copt=-DGRPC_BAZEL_BUILD"
1528+
test_targets:
1529+
- "//..."
1530+
working_directory: test_workspaces/go_fixer
13641531
test_workspace_go_importpath_ubuntu1804:
13651532
name: 'test workspace: go_importpath'
13661533
platform: ubuntu1804
@@ -1633,3 +1800,32 @@ tasks:
16331800
test_targets:
16341801
- "//..."
16351802
working_directory: test_workspaces/transitive_compilation
1803+
test_workspace_typescript_ubuntu1804:
1804+
name: 'test workspace: typescript'
1805+
platform: ubuntu1804
1806+
build_flags:
1807+
test_flags:
1808+
- "--test_output=errors"
1809+
test_targets:
1810+
- "//..."
1811+
working_directory: test_workspaces/typescript
1812+
test_workspace_typescript_windows:
1813+
name: 'test workspace: typescript'
1814+
platform: windows
1815+
build_flags:
1816+
test_flags:
1817+
- "--test_output=errors"
1818+
test_targets:
1819+
- "//..."
1820+
working_directory: test_workspaces/typescript
1821+
test_workspace_typescript_macos:
1822+
name: 'test workspace: typescript'
1823+
platform: macos
1824+
build_flags:
1825+
- "--copt=-DGRPC_BAZEL_BUILD"
1826+
test_flags:
1827+
- "--test_output=errors"
1828+
- "--copt=-DGRPC_BAZEL_BUILD"
1829+
test_targets:
1830+
- "//..."
1831+
working_directory: test_workspaces/typescript

.github/labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
dependencies: ['repositories.bzl', '*/repositories.bzl', 'third_party/**/*']
22
documentation: ['docs/**/*']
33
lang-android: ['android/**/*', 'example/android/**/*', 'tools/rulegen/android.go']
4+
lang-buf: ['buf/**/*', 'example/buf/**/*', 'tools/rulegen/buf.go']
45
lang-c: ['c/**/*', 'example/c/**/*', 'tools/rulegen/c.go']
56
lang-cpp: ['cpp/**/*', 'example/cpp/**/*', 'tools/rulegen/cpp.go']
67
lang-csharp: ['csharp/**/*', 'example/csharp/**/*', 'tools/rulegen/csharp.go']
78
lang-d: ['d/**/*', 'example/d/**/*', 'tools/rulegen/d.go']
9+
lang-doc: ['doc/**/*', 'example/doc/**/*', 'tools/rulegen/doc.go']
810
lang-go: ['go/**/*', 'example/go/**/*', 'tools/rulegen/go.go']
911
lang-grpc-gateway: ['grpc-gateway/**/*', 'example/grpc-gateway/**/*', 'tools/rulegen/grpc_gateway.go']
1012
lang-java: ['java/**/*', 'example/java/**/*', 'tools/rulegen/java.go']

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
# Changelog
22

3+
## 3.1.0
4+
5+
This update mostly brings fixes to the JavaScript rules, along with new rules for generating Markdown, JSON, HTML or
6+
DocBook documentation from .proto files using [protoc-gen-doc](https://github.com/pseudomuto/protoc-gen-doc).
7+
Additionally, new `buf_proto_lint` and `buf_proto_breaking` rules have been added to support linting .proto files and
8+
checking for breaking changes using [Buf](https://buf.build).
9+
10+
### General
11+
- Updated protobuf to 3.15.3
12+
13+
### Buf
14+
- Added linting and breaking change detection rules using [Buf](https://buf.build)
15+
16+
### Doc
17+
- Added documentation rules to generate Markdown, JSON, HTML or DocBook files using
18+
[protoc-gen-doc](https://github.com/pseudomuto/protoc-gen-doc)
19+
20+
### grpc-gateway
21+
- Updated grpc-gateway to 2.3.0
22+
- Fixed issue with mixing .proto files that do and do not contain services
23+
[#72](https://github.com/rules-proto-grpc/rules_proto_grpc/issues/72)
24+
25+
### JavaScript
26+
- Updated `rules_nodejs` to 3.2.1
27+
- **WORKSPACE update needed**: The dependencies for JavaScript rules must now be loaded into your local `packge.json`,
28+
which defaults to the name `@npm`. The `yarn_install` for `js_modules` in your WORKSPACE can now also be removed
29+
- Updated `@grpc/grpc-js` to 1.2.8
30+
- Fixed missing `DeclarationInfo` when using the `js_grpc_node_library` or `js_grpc_web_library` rules
31+
[#113](https://github.com/rules-proto-grpc/rules_proto_grpc/issues/113)
32+
- Added a TypeScript test workspace
33+
34+
### Objective-C
35+
- Added the `objc_grpc_library` experimental rule
36+
37+
### Rust
38+
- Updated `rules_rust` to latest
39+
- Updated `grpcio` to 0.8.0
40+
- Updated `protobuf` to 2.22.0
41+
42+
---
43+
344
## 3.0.0
445

546
This update brings some major improvements to rules_proto_grpc and solves many of the longstanding issues that have been

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ buildifier:
1515
.PHONY: rust_raze
1616
rust_raze:
1717
cd rust/raze; \
18-
rm Cargo.lock; \
18+
rm Cargo.raze.lock || true; \
1919
rm -r remote; \
20-
cargo raze; \
21-
sed -i -e 's/io_bazel_rules_rust/rules_rust/g' rust/raze/remote/*.bazel;
20+
cargo raze;
2221

2322

2423
# Run yarn to upgrade the js dependencies

0 commit comments

Comments
 (0)