Skip to content

Feat: protobuf syntax#11

Merged
Benjamintf1 merged 8 commits intocloudfoundry:masterfrom
ctlong:feat/protobuf-syntax
Jun 27, 2022
Merged

Feat: protobuf syntax#11
Benjamintf1 merged 8 commits intocloudfoundry:masterfrom
ctlong:feat/protobuf-syntax

Conversation

@ctlong
Copy link
Copy Markdown
Member

@ctlong ctlong commented Feb 11, 2022

  • Add proto2 syntax definitions
  • Add go_package option for generating go files
  • Update comments (// instead of ///, keep within 80 lines)
  • Use CAPITALS_WITH_UNDERSCORES for enums
  • Use underscore_separated_names for field names
  • Regenerate events/README.md
  • Update README.md

@cf-gitbot
Copy link
Copy Markdown

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

@ctlong ctlong marked this pull request as ready for review February 12, 2022 00:24
@mkocher
Copy link
Copy Markdown
Member

mkocher commented Mar 21, 2022

@ctlong it sounds like you're not ready for this one to be merged. Do you want to put it back in draft mode or resolve your comments?

@ctlong ctlong marked this pull request as draft March 21, 2022 16:47
@ctlong ctlong force-pushed the feat/protobuf-syntax branch from a8a247f to b528606 Compare June 17, 2022 02:31
ctlong added 3 commits June 16, 2022 23:08
* Reformat comments
* Add reserved fields
* Remove unused uuid.proto import in metric.proto
@ctlong ctlong force-pushed the feat/protobuf-syntax branch from b528606 to 0a60341 Compare June 17, 2022 03:11
ctlong added a commit to ctlong/loggregator-v1-protobuf-example that referenced this pull request Jun 17, 2022
@ctlong
Copy link
Copy Markdown
Member Author

ctlong commented Jun 17, 2022

This is the first step toward resolving cloudfoundry/go-loggregator#62.

This doesn't really matter since we don't store it in this repo, the
only thing that really matters is that the package is called `events`.

However, since we will pretty much always put this go code into
sonde-go, we should use that package name for clarity.
@ctlong ctlong marked this pull request as ready for review June 23, 2022 20:41
The files can't be generated relative to the `events` dir, or else
`events` isn't included in the absolute path of the generated protobuf
files. This can easily cause conflicts with other repos that define
similarly named protobuf definitions (i.e. loggregator v2).
@ctlong ctlong force-pushed the feat/protobuf-syntax branch from 59d696d to 439c6e7 Compare June 27, 2022 19:01
ctlong added a commit to ctlong/loggregator-v1-protobuf-example that referenced this pull request Jun 27, 2022
Generated from the code in
cloudfoundry/dropsonde-protocol#11.

This changes the source to include the `events` package, which will help
resolve some namespace conflicts.
ctlong and others added 2 commits June 27, 2022 22:08
Signed-off-by: Ben Fuller <benjaminf@vmware.com>
Co-authored-by: Ben Fuller <benjaminf@vmware.com>
Signed-off-by: Ben Fuller <benjaminf@vmware.com>
Co-authored-by: Ben Fuller <benjaminf@vmware.com>
@Benjamintf1 Benjamintf1 merged commit b69c42e into cloudfoundry:master Jun 27, 2022
@ctlong ctlong deleted the feat/protobuf-syntax branch June 27, 2022 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants