Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to gogoproto #715

Merged
merged 3 commits into from
Apr 18, 2017
Merged

Move to gogoproto #715

merged 3 commits into from
Apr 18, 2017

Conversation

fabxc
Copy link
Contributor

@fabxc fabxc commented Apr 18, 2017

@stuartnelson3 @mxinden

This moves our generated protobuf to gogoproto, which allows us to get rid of the awkward time types. I'd like to get this in before a release of the notification fixes.

This switches the nflog to generate Go code via gogoproto and thereby
use standard library timestamp types.

#!/usr/bin/env bash
#
# Generate all etcd protobuf bindings.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we reference etcd here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stolen script ;)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the license on this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

etcd script: https://github.com/coreos/etcd/blob/master/scripts/genproto.sh

Actually just took it as a skeleton to play around in. No license on this file.
What's the proper way to proceed here in your opinion?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The source repo is all Apache 2.0, so I'd just add a one-line note of where it was originally taken from and under what license.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

@stuartnelson3 stuartnelson3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Barring the raised license concern, looks cool to me

This generates the protobuf Go code with gogoproto and switches to
standard library time types.
Copy link
Contributor

@brian-brazil brian-brazil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

# Generate all protobuf bindings.
# Run from repository root.
#
# Initial script take from etcd under the Apache 2.0 license
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

taken

@fabxc fabxc merged commit cb8729a into master Apr 18, 2017
@fabxc fabxc deleted the gogoproto branch April 18, 2017 12:13
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.

4 participants