open-nomad/tools/buf
Seth Hoenig 7a6a7e4da1 build: install buf during bootstrap
Previously installing buf was left out of `make bootstrap` because it
had conflicts with the `tools/go.mod` file and dependencies used by
other tools. With Go 1.16 we eliminated that `go.mod` file, and can
now just install `buf` with `go install` like everything else.
2021-04-06 09:42:44 -06:00
..
README.md build: install buf during bootstrap 2021-04-06 09:42:44 -06:00
buf.gen.yaml proto: Switch to using buf (#9308) 2020-11-17 07:01:48 -08:00
buf.yaml use comment ignores (#9448) 2020-11-25 16:03:01 -05:00

README.md

Buf

buf is a high-performance protoc replacement.

Installation

Use make bootstrap in the root of this repo to install the version of buf used by Nomad.

Usage

make proto in the root of this repo will invoke buf using the configuration in this directory.

Why use buf instead of protoc?

Buf is a user-friendly tool to work with Protobuf that outperforms protoc in every conceivable way. It was written by the author(s) of prototool, another tool that made generating Protobuf easier, but which is now deprecated in favor of buf. Buf also does linting and breaking-change detection.