From 6b1b32fef12b536fe3668feb738dfee2515d0a56 Mon Sep 17 00:00:00 2001 From: Tanner Stirrat Date: Wed, 21 Aug 2024 10:56:26 -0600 Subject: [PATCH 1/3] Use v2 config of buf --- buf.gen.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/buf.gen.yaml b/buf.gen.yaml index c1126a5..9e6cf39 100755 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,13 +1,14 @@ -#!/usr/bin/env -S buf generate buf.build/authzed/api:v1.35.0 --template +#!/usr/bin/env -S buf generate --- -version: "v1" +version: "v2" +inputs: + - module: "buf.build/authzed/api:v1.35.0" plugins: - - name: "python" + - local: "python" out: "." - - name: "grpc-python" + - local: "grpc_python_plugin" out: "." - path: "grpc_python_plugin" - - name: "mypy" + - local: "mypy" out: "." - - name: "mypy_grpc" + - local: "mypy_grpc" out: "." From 93461b62bb83dacf4e6de16ec691cf2ab49951ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Rold=C3=A1n=20Betancort?= Date: Thu, 22 Aug 2024 13:20:01 +0100 Subject: [PATCH 2/3] unused env --- .github/workflows/test.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index fcf71df..065a7de 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -8,7 +8,6 @@ on: branches: ["*"] env: GRPC_VERSION: "1.62" - BUF_VERSION: "1.30.0" jobs: pytest: name: "Unit and Integration Tests" From c294411b5ebf3a714b1628be4930c860abff09ee Mon Sep 17 00:00:00 2001 From: Tanner Stirrat Date: Thu, 22 Aug 2024 11:48:45 -0600 Subject: [PATCH 3/3] Fix binary references --- buf.gen.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buf.gen.yaml b/buf.gen.yaml index 9e6cf39..f50d9da 100755 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -4,11 +4,11 @@ version: "v2" inputs: - module: "buf.build/authzed/api:v1.35.0" plugins: - - local: "python" + - local: "protoc-gen-grpc" out: "." - - local: "grpc_python_plugin" + - local: "protoc-gen-grpc_python_plugin" out: "." - - local: "mypy" + - local: "protoc-gen-mypy" out: "." - - local: "mypy_grpc" + - local: "protoc-gen-mypy_grpc" out: "."