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

Use go generate to rebuild .proto files #174

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

burdges
Copy link
Contributor

@burdges burdges commented Mar 28, 2015

We replace the shell scripts added in #161 to run protoc with go generate directives. I'd recommend that @agl rerun go generate himself rather than simply accepting e79daf2 of course.

I'll submit other pull requests that depend upon this one. Any pull request submitted by an Apple user should depend on 92157bb btw.

…protobuf.

Avoids screwing around with directories or editing files now.

Find gogoprotobuf at https://code.google.com/p/gogoprotobuf/
Run "go generate" in ./client, ./proto, ./panda, or ./server to
recompile the associated .proto files using an appropraite protoc
command.

We use gogoprotobuf from https://code.google.com/p/gogoprotobuf/
because Francesc @campoy indicated that even Google uses it to
goprotobuf.  We previously needed a perl script to fix a path mess
created by goprotobuf 29d5f5d ala

protoc --proto_path=$GOPATH/src:. --go_out=. disk/client.proto
perl -p -i~ -e 's/(import protos \"github.com\/agl\/pond\/protos)\/pond.pb\"/$1\"/' disk/client.pb.go
We nolonger need these scripts since go generate with gogoprotobuf
is cleaner.
I recommend that @agl replace this commit by installing gogoprotobuf
and running go generate in .clinet, ./protos, ./panda, ./server himself
rather than reviewing it.
@burdges
Copy link
Contributor Author

burdges commented Mar 29, 2015

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.

2 participants