Commit ef0fb79
committed
fix: pin protobuf version to prevent grpc transitive upgrade to 3.21.7
grpc-services:1.53.0 transitively pulls protobuf-java:3.21.7 (via
grpc-protobuf:1.53.0) which is protobuf v4 with breaking class hierarchy
changes. This causes NoSuchMethodError in TimestampProto.getDescriptor()
and VerifyError for Duration not assignable to AbstractMessage when
running rocketmq-proto:2.1.2 (compiled against protobuf 3.19.4).
Add version_conflict_policy = "pinned" to maven_install so the explicitly
declared protobuf-java:3.20.1 and protobuf-java-util:3.20.1 versions are
used unconditionally instead of being upgraded by transitive resolution.1 parent c4ca252 commit ef0fb79
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
129 | | - | |
130 | | - | |
131 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| |||
0 commit comments