Skip to content
Latchkey

buf remote plugin "not found" in CI

buf resolves each remote: plugin against the registry at run time. A "not found" means the exact name or version does not exist (a typo or a yanked version), or the runner could not reach the registry over the network.

What this error means

buf generate fails resolving a remote plugin, for example "plugin buf.build/protocolbuffers/go:v9.9.9 does not exist" or a network error contacting the registry.

buf generate
Failure: plugin "buf.build/protocolbuffers/go:v9.9.9" was not found
Error: Process completed with exit code 1.

Common causes

A wrong plugin name or version

The referenced remote plugin path or version tag does not exist on the registry, so resolution fails deterministically.

The registry is unreachable from the runner

A network block or transient outage prevents buf from fetching the remote plugin.

How to fix it

Reference an existing plugin and version

  1. Confirm the plugin path and a published version on buf.build.
  2. Update buf.gen.yaml to a real name and version.
  3. Re-run buf generate.
buf.gen.yaml
version: v2
plugins:
  - remote: buf.build/protocolbuffers/go:v1.34.2
    out: gen

Retry on a transient network failure

If the reference is valid, a resolution failure is usually a transient network drop; re-running the job clears it.

How to prevent it

  • Pin remote plugins to versions verified to exist on the registry.
  • Review plugin references when upgrading generated code.
  • Retry transient registry-network failures automatically.

Frequently asked questions

What causes "buf remote plugin not found"?
The referenced remote plugin path or version tag does not exist on the registry, so resolution fails deterministically.
How do I fix buf remote plugin not found?
Reference an existing plugin and version

Related guides

References

Latchkey auto-heals failures like this one - detected, fixed, and retried without you. Start free → 30-day trial · No credit card