Bazel Build Trends

Getting Started

Install Protobuf

apt install -y protobuf-compiler # Linux
brew install protobuf # Mac
protoc --version  # Ensure compiler version is 3+

Running

Bazel

bazel run //examples/client

Go

go run examples/server/main.go

Development

Updating the Protobuf generated Go files

protoc --go_out=. --go_opt=paths=source_relative \
    --go-grpc_out=. --go-grpc_opt=paths=source_relative \
    pkg/proto/helloworld.proto

TODO

  • Configure what the client sends to the server.
  • Allow configuring the client message via CLI.
  • Create a proper repo structure.
  • Import the bazel build stream plugin.
  • Attempt to receive a bazel build stream from a bazel invocation.