POC only depends on Docker.
- Build the binary
go build .
- Create an Artifact Registry (Docker) named as:
us-docker.pkg.dev/[YOUR_PROJECT]/protos
- Publish the protos:
./bufar publish --registry=us-docker.pkg.dev/[YOUR_PROJECT]/protos --protos=./protos --package="bufarexample.v1"
This command publishes the protos defined in protos.
- Generate the code from the published protos:
First, you need a buf.gen.yaml
where you need to call the tool.
See the example in the repo.
./bufar generate --registry=us-docker.pkg.dev/gochen/protos --package="burarexample.v1"
Folder gen is generated from the command above.