Skip to content

Upgrade protobuf#81

Merged
Benjamintf1 merged 12 commits intomainfrom
62-upgrade-protobuf
Jun 27, 2022
Merged

Upgrade protobuf#81
Benjamintf1 merged 12 commits intomainfrom
62-upgrade-protobuf

Conversation

@ctlong
Copy link
Copy Markdown
Member

@ctlong ctlong commented Jun 23, 2022

Resolves #62

ctlong and others added 9 commits June 23, 2022 14:47
Bad idea to directly compare protobuf messages because the sizeCache
differs. Instead use `proto.Equal()` where appropriate.

Since the two things we care about are EventType (integer) and
HttpStartStop (protobuf message), we can compare one directly and the
other with `proto.Equal()`.
Dereferencing envelopes[0] into `Expect()` meant we were copying the
lock value of a mutex contained in the envelope.
* Using the protobuf definitions at
  cloudfoundry/loggregator-api#23.
* This changes the source to avoid namespace conflicts and uses a newer
  version of protoc.
* Update generate script accordingly.

Signed-off-by: Ben Fuller <benjaminf@vmware.com>
Signed-off-by: Carson Long <lcarson@vmware.com>
Signed-off-by: Ben Fuller <benjaminf@vmware.com>
@ctlong ctlong marked this pull request as ready for review June 27, 2022 22:26
Ben Fuller and others added 3 commits June 27, 2022 22:28
Signed-off-by: Carson Long <lcarson@vmware.com>
Signed-off-by: Ben Fuller <benjaminf@vmware.com>
* Removes many transitive dependencies

Signed-off-by: Carson Long <lcarson@vmware.com>
@Benjamintf1 Benjamintf1 merged commit 4b007d7 into main Jun 27, 2022
@Benjamintf1 Benjamintf1 deleted the 62-upgrade-protobuf branch June 27, 2022 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

github.com/golang/protobuf/proto is deprecated

2 participants