rsync -Lav <ROOT>/remote-apis/build .
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install github.com/googleapis/googleapis@latest
# Patch all the go_options lines in the proto files to be relative to this
# directory.
find build -name "*.pb.go" -delete
protoc --proto_path=. --go_out=. \
-I=$GOPATH/pkg/mod/github.com/googleapis/googleapis@v0.0.0-20220329183022-151e02bdb281 \
--go_opt=paths=source_relative \
build/bazel/remote/asset/v1/remote_asset.proto \
build/bazel/remote/execution/v2/remote_execution.proto \
build/bazel/remote/logstream/v1/remote_logstream.proto \
build/bazel/semver/semver.proto