Install the dependencies:
go get
Make sure you have the binary built.
go build
You can either have the built binary on your path or point to it relatively with your buf.gen.yaml file.
Example:
# Learn more: https://docs.buf.build/configuration/v2/buf-gen-yaml
version: v2
plugins:
- local: ../protoc-gen-godot/protoc-gen-godot
out: godot/protos/
inputs:
- directory: proto/
Drag the addons folder into your godot resources as a plugin. This contains the needed code for all the generated files to use.
There is a test proto file that can be built against and tests can be ran with godot in headless mode to ensure things are working correctly.
# Generate file
npx @bufbuild/buf generate proto
# Run test file
godot --headless -s test.gd