Skip to content

Use go generate to rebuild .proto files#174

Open
burdges wants to merge 5 commits into
agl:masterfrom
burdges:gogenerate
Open

Use go generate to rebuild .proto files#174
burdges wants to merge 5 commits into
agl:masterfrom
burdges:gogenerate

Conversation

@burdges
Copy link
Copy Markdown
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
Copy Markdown
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