Commit 97fce71
committed
fix(ci): resolve protobuf runtime incompatibility (Round 7)
- Add io.grpc:grpc-protobuf:1.53.0 to WORKSPACE maven_install to
explicitly include the gRPC-protobuf bridge (needed for protobuf
descriptor registration of well-known types like Timestamp/Duration)
- Add @maven//:io_grpc_grpc_protobuf to auth, proxy, and test
BUILD.bazel deps (both main and test libraries)
- Upgrade protobuf-java/protobuf-java-util from 3.20.1 to 3.21.7 to
match grpc-protobuf:1.53.0's compile-time dependency, preventing
NoSuchMethodError when proto-google-common-protos (compiled against
3.21.7) calls protobuf APIs not present in 3.20.1
Root cause: grpc-protobuf was not explicitly declared in WORKSPACE,
so the gRPC-protobuf descriptor bridge was missing from the runtime
classpath. Additionally, grpc-protobuf:1.53.0 and its transitive dep
proto-google-common-protos were compiled against protobuf 3.21.7, but
the pinned 3.20.1 (version_conflict_policy=pinned) caused forward-
compatibility failures (NoSuchMethodError on TimestampProto.getDescriptor,
VerifyError on Duration vs AbstractMessage).1 parent ef0fb79 commit 97fce71
4 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
0 commit comments