From 4ec852014dad74606d4078b3ae1aa208c814b033 Mon Sep 17 00:00:00 2001 From: Cabbagec Date: Wed, 22 Jul 2026 12:03:08 +0000 Subject: [PATCH] Pin Python protobuf generators --- README.md | 3 ++- buf.gen.yaml | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 68daaa8..dbc82b9 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,8 @@ available; it is not required on the thin development host. Generated Python bindings are copied into and committed by consumer repositories with the exact proto release/commit recorded in their generated -header. `gen/` is intentionally ignored here. +header. Both generator plugins are version/revision pinned. `gen/` is +intentionally ignored here. Before releasing a compatible update: diff --git a/buf.gen.yaml b/buf.gen.yaml index c1afa41..72b3c40 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,7 +1,9 @@ version: v2 clean: true plugins: - - remote: buf.build/protocolbuffers/python + - remote: buf.build/protocolbuffers/python:v35.1 + revision: 1 out: gen/python - - remote: buf.build/protocolbuffers/pyi + - remote: buf.build/protocolbuffers/pyi:v35.1 + revision: 1 out: gen/python