buf icon indicating copy to clipboard operation
buf copied to clipboard

Add support for plugin path overrides in `protoc-gen-buf-{lint,breaking}`

Open doriable opened this issue 6 months ago • 1 comments

This PR adds support to protoc-gen-buf-{lint,breaking} for overriding local plugin paths. protoc-gen-buf-{lint,breaking} do not support running remote check plugins, only local.

The primary use-case for this is Bazel, which runs protoc-gen-buf-{lint,breaking} in a sandboxed environment. rules_buf needs to be able to provide path overrides to local check plugin binaries.

If an override for a plugin config is not provided, if the plugin config is a remote plugin, we return an error, otherwise we attempt to use the plugin config as-is.

Fixes #3867

doriable avatar Jun 13 '25 19:06 doriable

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedJun 16, 2025, 5:54 PM

github-actions[bot] avatar Jun 13 '25 19:06 github-actions[bot]

Tested this against a local Bazel test setup, things look good. Going to merge.

doriable avatar Jun 18 '25 21:06 doriable