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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions client/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ import (
"golang.org/x/crypto/curve25519"
)

//go:generate protoc --proto_path=$GOPATH/src:. --gogo_out=. disk/client.proto

// We use gogoprotobuf from https://code.google.com/p/gogoprotobuf/ because
// Francesc @Campoy indicated that even Google uses it over goprotobuf.
// See 29d5f5d16f523b0a113e786143fc4dacc8affa97 for goprotobuf scripts like :
// 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

// erasureRotationTime is the amount of time that we'll use a single erasure
// storage value before rotating.
const erasureRotationTime = 24 * time.Hour
Expand Down
Loading