proto

module
v1.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2026 License: Apache-2.0

README

Proto

Protocol buffer definitions and generated code for Infracost services.

Prerequisites

Install buf:

# via brew
brew install bufbuild/buf/buf

# via go
go install github.com/bufbuild/buf/cmd/buf@latest

Development

After modifying .proto files, generate the code:

make generate

Commit both the .proto changes and the generated code in gen/.

IDE Setup

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

Zed: Install the protobuf extension and add to your settings:

{
  "lsp": {
    "buf": {
      "initialization_options": {
        "protoPaths": ["proto"]
      }
    }
  }
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL