blob: 80472c4857400a1f559bcc363bf9a7294cfd72d4 [file] [log] [blame]
The upspin.io/upspin/proto package is generated from the upspin.proto file.
To generate it, you need protoc 3.1.0 or later and the protoc-gen-go tools.
Download the protoc build (version 3.x) for your platform
and put it in your PATH.
https://github.com/google/protobuf/releases
Use 'go get' to install the latest protoc-gen-go
(git hash 6a1fa94 at time of writing, June 2017):
$ go get -u github.com/golang/protobuf/protoc-gen-go
Then, run 'go generate' from this directory to re-generate the package:
$ go generate
If you encounter unexpected diffs, such as changes to the
"ProtoPackageIsVersion3" constants, then you may be using the wrong versions of
protoc or protoc-gen-go.
To debug, run 'which protoc' and 'which protoc-gen-go' and check that the
commands in your path are the ones you just installed.