How to update the binaries other than protoc-linux-x86_64.exe:
i in *.exe; do mv $i $(echo $i | sed s/3.0.0-beta-2-//); donechmod +x *.exethird_party/BUILD to point to the new jar file.The 64-bit Linux version of the proto compiler is linked statically. To update it, do the following steps on an x86_64 machine:
git clone http://github.com/google/protobuf.gitgit checkout <commithash> (current is d5fb408d or 3.0.0-beta-2)./autogen.shLDFLAGS=-static ./configureLDFLAGS = -static to LDFLAGS = -all-static in src/Makefile.makecp src/protoc <Bazel tree>/third_party/protobuf/protoc-linux-x86_64.exe .How to update protobuf.bzl and the src/ directory:
git clone http://github.com/google/protobuf.gitgit checkout <commithash> (current is d5fb408d or 3.0.0-beta-2)mkdir -p third_party/protobuf/src/google in the root of the Bazel tree.cp -R <root of protobuf tree>/src/google/protobuf third_party/protobuf/src/googlethird_party/protobuf/BUILD with the rules in the protobuf repository.How to update protoc-mingw.exe: This is pretty much the same steps as for x86_64 above, but they need to be done from MingW shell on Windows machine ([https://sourceforge.net/projects/msys2/files/]).
git clone http://github.com/google/protobuf.gitgit checkout <commithash> (current is d5fb408d or 3.0.0-beta-2)./autogen.shmakecp src/protoc.exe <Bazel tree>/third_party/protobuf/protoc-mingw.exe .How to update anything else in this directory: follow usual procedure as described on https://www.bazel.io/contributing.html