Commit ce40040
committed
Migrate uses of struct.to_proto
Reapplies #6778 after
#6721 inadvertently
reverted part of it.
The "to_proto" method on Starlark structs is deprecated and shouldn't be
used. Instead, the proto module's "encode_text" function should be used.
(https://bazel.build/rules/lib/toplevel/proto)
It, along with "to_json", can be disabled in Bazel using the flag
--incompatible_struct_has_no_methods
The underlying implementation is the same, so there should be no
observable changes in final outputs.1 parent c01e0bc commit ce40040
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments