Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/coordinator/internal/lucipoll: update for new JSONPB field naming
As of crrev.com/c/5875121, golangbuild switched to the new default behavior of using 'proto' field naming (such as "gitiles_commit") instead of using protobuf default names (such as "gitilesCommit"). The previous behavior can still be achieved by explicitly using the https://pkg.go.dev/go.chromium.org/luci/luciexe/build/properties#OptProtoUseJSONNames option, but we choose to accept the new default behavior since it's fine for our needs. So, update a few places in lucipoll for the new field naming pattern as was also recently done for watchflakes in CL 615515. Not handling the old pattern here since lucipoll only needs to handle new builds. Also drop the unused "omitempty" option from BuilderConfigProperties while here - it's never used for marshaling, only unmarshaling. For golang/go#69609. For golang/go#65913. Change-Id: Icf2f942fa9821f8781c9a2ecaddd2a3e10496ba2 Reviewed-on: https://go-review.googlesource.com/c/build/+/615976 Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: David Chase <[email protected]>
- Loading branch information