Protocol buffer definitions and generated code for Infracost services.
Install buf:
# via brew
brew install bufbuild/buf/buf
# via go
go install github.com/bufbuild/buf/cmd/buf@latestAfter modifying .proto files, generate the code:
make generateCommit both the .proto changes and the generated code in gen/.
If your IDE shows broken imports for proto files:
VSCode: Install the vscode-proto3 extension and add to .vscode/settings.json:
{
"protoc": {
"options": [
"--proto_path=${workspaceRoot}/proto"
]
}
}IntelliJ/GoLand: Right-click proto/ → Mark Directory as → Protobuf Include Path