Generating code
Remote plugins & stubs generate
Stubs runs Protobuf plugins for you: stubs generate sends the module, and gets the generated files back. The
Plugins page lists them, with their versions.
Name the plugins in stubs.gen.yaml, with a version or without (the latest):
version: v2
plugins:
- remote: stubs.dev/stubs/protobuf-go:v1.36.12
out: gen/go
- remote: stubs.dev/stubs/protobuf-es
out: gen/esstubs generateThe output is what the same plugin generates on your machine. Pin plugin versions for builds you want to repeat.